Module: ElasticGraph::Apollo::SchemaDefinition::ApolloDirectives::Provides
- Included in:
- FieldExtension
- Defined in:
- lib/elastic_graph/apollo/schema_definition/apollo_directives.rb
Overview
Supports Apollo’s [‘@provides` directive](www.apollographql.com/docs/federation/federated-types/federated-directives/#provides).
Instance Method Summary collapse
-
#apollo_provides(fields:) ⇒ void
Adds the [‘@provides` directive](www.apollographql.com/docs/federation/federated-types/federated-directives/#provides) to the schema element.
Instance Method Details
#apollo_provides(fields:) ⇒ void
This method returns an undefined value.
Adds the [‘@provides` directive](www.apollographql.com/docs/federation/federated-types/federated-directives/#provides) to the schema element.
196 197 198 |
# File 'lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 196 def apollo_provides(fields:) directive "provides", fields: fields end |