Module: GraphQL::StaticValidation::DirectivesAreInValidLocations

Includes:
Language
Defined in:
lib/graphql/static_validation/rules/directives_are_in_valid_locations.rb

Instance Method Summary collapse

Methods included from Language

serialize

Instance Method Details

#on_directive(node, parent) ⇒ Object


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

def on_directive(node, parent)
  validate_location(node, parent, context.schema.directives)
  super
end