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



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

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