Module: GraphQL::StaticValidation::FragmentsAreOnCompositeTypes

Defined in:
lib/graphql/static_validation/rules/fragments_are_on_composite_types.rb

Instance Method Summary collapse

Instance Method Details

#on_fragment_definition(node, parent) ⇒ Object



5
6
7
# File 'lib/graphql/static_validation/rules/fragments_are_on_composite_types.rb', line 5

def on_fragment_definition(node, parent)
  validate_type_is_composite(node) && super
end

#on_inline_fragment(node, parent) ⇒ Object



9
10
11
# File 'lib/graphql/static_validation/rules/fragments_are_on_composite_types.rb', line 9

def on_inline_fragment(node, parent)
  validate_type_is_composite(node) && super
end