Module: ElasticGraph::Apollo::SchemaDefinition::ApolloDirectives::RequiresScopes
- Included in:
- EnumTypeExtension, FieldExtension, InterfaceTypeExtension, ObjectTypeExtension, ScalarTypeExtension
- 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/#requiresscopes].
Instance Method Summary collapse
-
#apollo_requires_scopes(scopes:) ⇒ void
Adds the directive[https://www.apollographql.com/docs/federation/federated-types/federated-directives/#requiresscopes] to the schema element.
Instance Method Details
#apollo_requires_scopes(scopes:) ⇒ void
This method returns an undefined value.
Adds the directive[https://www.apollographql.com/docs/federation/federated-types/federated-directives/#requiresscopes] to the schema element.
241 242 243 |
# File 'elasticgraph-apollo/lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 241 def apollo_requires_scopes(scopes:) directive "requiresScopes", scopes: scopes end |