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
22 23 24 |
# File 'lib/elastic_graph/apollo/schema_definition/entity_type_extension.rb', line 22 def graphql_fields_by_name {} end |
#indexed? ⇒ Boolean
26 27 28 |
# File 'lib/elastic_graph/apollo/schema_definition/entity_type_extension.rb', line 26 def indexed? false end |