Class: GraphQL::StaticValidation::RequiredArgumentsArePresent
- Inherits:
-
Object
- Object
- GraphQL::StaticValidation::RequiredArgumentsArePresent
- Includes:
- Message::MessageHelper
- Defined in:
- lib/graphql/static_validation/rules/required_arguments_are_present.rb
Instance Method Summary collapse
Methods included from Message::MessageHelper
Instance Method Details
#validate(context) ⇒ Object
7 8 9 10 11 |
# File 'lib/graphql/static_validation/rules/required_arguments_are_present.rb', line 7 def validate(context) v = context.visitor v[GraphQL::Language::Nodes::Field] << ->(node, parent) { validate_field(node, context) } v[GraphQL::Language::Nodes::Directive] << ->(node, parent) { validate_directive(node, context) } end |