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