Module: GraphQL::StaticValidation::DirectivesAreInValidLocations
- Includes:
- Language
- Defined in:
- lib/graphql/static_validation/rules/directives_are_in_valid_locations.rb
Constant Summary
Constants included from Language
Language::INVALID_NUMBER_FOLLOWED_BY_NAME_REGEXP
Instance Method Summary collapse
Methods included from Language
add_space_between_numbers_and_names, escape_single_quoted_newlines, 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 |