Module: GraphQL::StaticValidation::FragmentTypesExist

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

Overview

-- @requires_ancestor: GraphQL::StaticValidation::BaseVisitor

Instance Method Summary collapse

Instance Method Details

#on_fragment_definition(node, _parent) ⇒ Object

: (GraphQL::Language::Nodes::FragmentDefinition node, GraphQL::Language::Nodes::AbstractNode? _parent) -> void



10
11
12
13
14
# File 'lib/graphql/static_validation/rules/fragment_types_exist.rb', line 10

def on_fragment_definition(node, _parent)
  if validate_type_exists(node)
    super
  end
end

#on_inline_fragment(node, _parent) ⇒ Object

: (GraphQL::Language::Nodes::InlineFragment node, GraphQL::Language::Nodes::AbstractNode? _parent) -> void



17
18
19
20
21
# File 'lib/graphql/static_validation/rules/fragment_types_exist.rb', line 17

def on_inline_fragment(node, _parent)
  if validate_type_exists(node)
    super
  end
end