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 directive[https://www.apollographql.com/docs/federation/federated-types/federated-directives/#requires].
Instance Method Summary collapse
-
#apollo_requires(fields:) ⇒ void
Adds the directive[https://www.apollographql.com/docs/federation/federated-types/federated-directives/#requires] to the schema element.
Instance Method Details
#apollo_requires(fields:) ⇒ void
This method returns an undefined value.
Adds the directive[https://www.apollographql.com/docs/federation/federated-types/federated-directives/#requires] 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 |