Module: ElasticGraph::Apollo::SchemaDefinition::ApolloDirectives::Policy
- 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/#policy].
Instance Method Summary collapse
-
#apollo_policy(policies:) ⇒ void
Adds the directive[https://www.apollographql.com/docs/federation/federated-types/federated-directives/#policy] to the schema element.
Instance Method Details
#apollo_policy(policies:) ⇒ void
This method returns an undefined value.
Adds the directive[https://www.apollographql.com/docs/federation/federated-types/federated-directives/#policy] to the schema element.
169 170 171 |
# File 'elasticgraph-apollo/lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 169 def apollo_policy(policies:) directive "policy", policies: policies end |