Class: ElasticGraph::SchemaDefinition::SchemaElements::SortOrderEnumValue

Inherits:
EnumValue
  • Object
show all
Defined in:
elasticgraph-schema_definition/lib/elastic_graph/schema_definition/schema_elements/sort_order_enum_value.rb

Overview

Simple wrapper around an EnumValue so that we can expose the sort_order_field_path to Field customization callbacks.

Instance Attribute Summary collapse

Attributes inherited from EnumValue

#name, #runtime_metadata, #schema_def_state

Attributes included from Mixins::HasDocumentation

#doc_comment

Method Summary

Methods inherited from EnumValue

#duplicate_on, #to_sdl, #update_runtime_metadata

Methods included from Mixins::HasDirectives

#directive, #directives, #directives_sdl

Methods included from Mixins::HasDocumentation

#append_to_documentation, #derived_documentation, #documentation, #formatted_documentation

Methods included from Mixins::VerifiesGraphQLName

verify_name!

Instance Attribute Details

#sort_order_field_pathArray<Field> (readonly)

Returns path to the field from the root of the indexed ObjectType.

Returns:

  • (Array<Field>)

    path to the field from the root of the indexed ObjectType



23
24
25
# File 'elasticgraph-schema_definition/lib/elastic_graph/schema_definition/schema_elements/sort_order_enum_value.rb', line 23

def sort_order_field_path
  @sort_order_field_path
end