Class: GraphQL::StaticValidation::VariablesAreInputTypes

Inherits:
Object
  • Object
show all
Includes:
Message::MessageHelper
Defined in:
lib/graphql/static_validation/rules/variables_are_input_types.rb

Instance Method Summary collapse

Methods included from Message::MessageHelper

#message

Instance Method Details

#validate(context) ⇒ Object


6
7
8
9
10
# File 'lib/graphql/static_validation/rules/variables_are_input_types.rb', line 6

def validate(context)
  context.visitor[GraphQL::Language::Nodes::VariableDefinition] << ->(node, parent) {
    validate_is_input_type(node, context)
  }
end