Module: ElasticGraph::Apollo::SchemaDefinition::EntityTypeExtension
- Defined in:
- lib/elastic_graph/apollo/schema_definition/entity_type_extension.rb
Overview
The Apollo ‘_Entity` type is a type union of all entity subtypes in an ElasticGraph schema. However, unlike a normal union type:
-
‘_Entity` is never an indexed type, and should not be treated as one (even though its subtypes are all indexed, which would usually cause it to be treated as indexed!).
-
A merged set of ‘graphql_fields_by_name` cannot be safely computed. That method raises errors if a field with the same name has conflicting definitions on different subtypes, but we must allow that on `_Entity` subtypes.
Instance Method Summary collapse
Instance Method Details
#graphql_fields_by_name ⇒ Object
20 21 22 |
# File 'lib/elastic_graph/apollo/schema_definition/entity_type_extension.rb', line 20 def graphql_fields_by_name {} end |
#indexed? ⇒ Boolean
24 25 26 |
# File 'lib/elastic_graph/apollo/schema_definition/entity_type_extension.rb', line 24 def indexed? false end |