Class: ElasticGraph::SchemaDefinition::Results
- Inherits:
-
Object
- Object
- ElasticGraph::SchemaDefinition::Results
- Defined in:
- elasticgraph-schema_definition/lib/elastic_graph/schema_definition/results.rb
Overview
This class is designed to implement the same interface as ElasticGraph::SchemaArtifacts::FromDisk, so that it can be used
Provides the results of defining a schema.
interchangeably with schema artifacts loaded from disk. This allows the artifacts to be used in tests without having to dump them or reload them.
Instance Method Summary collapse
-
#datastore_config ⇒ Hash<String, Object>
The Elasticsearch/OpenSearch configuration dumped as
datastore_config.yaml. -
#graphql_schema_string ⇒ String
The generated GraphQL SDL schema string dumped as
schema.graphql. -
#runtime_metadata ⇒ Hash<String, Object>
Runtime metadata used by other parts of ElasticGraph and dumped as
runtime_metadata.yaml.
Methods included from ElasticGraph::SchemaArtifacts::ArtifactsHelperMethods
#datastore_scripts, #index_mappings_by_index_def_name, #index_templates, #indices
Instance Method Details
#datastore_config ⇒ Hash<String, Object>
Returns the Elasticsearch/OpenSearch configuration dumped as datastore_config.yaml.
37 38 39 |
# File 'elasticgraph-schema_definition/lib/elastic_graph/schema_definition/results.rb', line 37 def datastore_config @datastore_config ||= generate_datastore_config end |
#graphql_schema_string ⇒ String
Returns the generated GraphQL SDL schema string dumped as schema.graphql.
32 33 34 |
# File 'elasticgraph-schema_definition/lib/elastic_graph/schema_definition/results.rb', line 32 def graphql_schema_string @graphql_schema_string ||= generate_sdl end |
#runtime_metadata ⇒ Hash<String, Object>
Returns runtime metadata used by other parts of ElasticGraph and dumped as runtime_metadata.yaml.
42 43 44 |
# File 'elasticgraph-schema_definition/lib/elastic_graph/schema_definition/results.rb', line 42 def @runtime_metadata ||= end |