Module: ElasticGraph::Apollo::SchemaDefinition::ApolloDirectives::Requires
- Included in:
- FieldExtension
- Defined in:
- elasticgraph-apollo/lib/elastic_graph/apollo/schema_definition/apollo_directives.rb
Overview
Supports Apollo’s @requires
directive.
Instance Method Summary collapse
-
#apollo_requires(fields:) ⇒ void
Adds the
@requires
directive to the schema element.
Instance Method Details
#apollo_requires(fields:) ⇒ void
This method returns an undefined value.
Adds the @requires
directive
to the schema element.
220 221 222 |
# File 'elasticgraph-apollo/lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 220 def apollo_requires(fields:) directive "requires", fields: fields end |