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



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

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