Module: ElasticGraph::Apollo::SchemaDefinition::StateExtension
- Defined in:
- lib/elastic_graph/apollo/schema_definition/state_extension.rb
Overview
Extension module applied to ‘ElasticGraph::SchemaDefinition::State` to support extra Apollo state.
Instance Attribute Summary collapse
-
#apollo_directive_definitions ⇒ Object
Returns the value of attribute apollo_directive_definitions.
Class Method Summary collapse
Instance Attribute Details
#apollo_directive_definitions ⇒ Object
Returns the value of attribute apollo_directive_definitions.
15 16 17 |
# File 'lib/elastic_graph/apollo/schema_definition/state_extension.rb', line 15 def apollo_directive_definitions @apollo_directive_definitions end |
Class Method Details
.extended(state) ⇒ Object
17 18 19 |
# File 'lib/elastic_graph/apollo/schema_definition/state_extension.rb', line 17 def self.extended(state) state.apollo_directive_definitions = [] # Ensure it's never `nil`. end |