Module: ElasticGraph::Apollo::SchemaDefinition::ApolloDirectives::Provides
- 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/#provides].
Instance Method Summary collapse
-
#apollo_provides(fields:) ⇒ void
Adds the directive[https://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 directive[https://www.apollographql.com/docs/federation/federated-types/federated-directives/#provides] to the schema element.
196 197 198 |
# File 'elasticgraph-apollo/lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 196 def apollo_provides(fields:) directive "provides", fields: fields end |