Module: ElasticGraph::Apollo::SchemaDefinition::ApolloDirectives::Requires
- Included in:
- FieldExtension
- Defined in:
- lib/elastic_graph/apollo/schema_definition/apollo_directives.rb
Overview
Supports Apollo’s [‘@requires` directive](www.apollographql.com/docs/federation/federated-types/federated-directives/#requires).
Instance Method Summary collapse
-
#apollo_requires(fields:) ⇒ void
Adds the [‘@requires` directive](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 [‘@requires` directive](www.apollographql.com/docs/federation/federated-types/federated-directives/#requires) to the schema element.
220 221 222 |
# File 'lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 220 def apollo_requires(fields:) directive "requires", fields: fields end |