Module: GraphQL::StaticValidation::RequiredArgumentsArePresent
- Defined in:
- lib/graphql/static_validation/rules/required_arguments_are_present.rb
Instance Method Summary collapse
Instance Method Details
#on_directive(node, _parent) ⇒ Object
10 11 12 13 14 |
# File 'lib/graphql/static_validation/rules/required_arguments_are_present.rb', line 10 def on_directive(node, _parent) directive_defn = context.schema.directives[node.name] assert_required_args(node, directive_defn) super end |
#on_field(node, _parent) ⇒ Object
5 6 7 8 |
# File 'lib/graphql/static_validation/rules/required_arguments_are_present.rb', line 5 def on_field(node, _parent) assert_required_args(node, field_definition) super end |