Class: GraphQL::StaticValidation::FragmentsAreNamed
- Inherits:
-
Object
- Object
- GraphQL::StaticValidation::FragmentsAreNamed
- Includes:
- Message::MessageHelper
- Defined in:
- lib/graphql/static_validation/rules/fragments_are_named.rb
Instance Method Summary collapse
Methods included from Message::MessageHelper
Instance Method Details
#validate(context) ⇒ Object
6 7 8 |
# File 'lib/graphql/static_validation/rules/fragments_are_named.rb', line 6 def validate(context) context.visitor[GraphQL::Language::Nodes::FragmentDefinition] << -> (node, parent) { validate_name_exists(node, context) } end |