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 @requiresScopes
directive.
Instance Method Summary collapse
-
#apollo_requires_scopes(scopes:) ⇒ void
Adds the
@requiresScopes
directive to the schema element.
Instance Method Details
#apollo_requires_scopes(scopes:) ⇒ void
This method returns an undefined value.
Adds the @requiresScopes
directive
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 |