Class: ElasticGraph::SchemaDefinition::SchemaElements::InputField
- Inherits:
-
Field
- Object
- Struct
- Field
- ElasticGraph::SchemaDefinition::SchemaElements::InputField
- Includes:
- Mixins::SupportsDefaultValue
- Defined in:
- lib/elastic_graph/schema_definition/schema_elements/input_field.rb
Overview
A decorator that wraps a ‘Field` in order to provide additional functionality that we need to support on fields on input types (but not on fields on return types).
For example, fields on input types support default values, but return type fields do not.
Constant Summary
Constants inherited from Field
Constants included from Mixins::HasTypeInfo
Mixins::HasTypeInfo::CUSTOMIZABLE_DATASTORE_PARAMS
Instance Attribute Summary
Attributes inherited from Field
#accuracy_confidence, #aggregatable, #aggregated_values_customizations, #args, #as_input, #backing_indexing_field, #filter_customizations, #filterable, #graphql_only, #groupable, #grouped_by_customizations, #legacy_grouping_schema, #name, #non_nullable_in_json_schema, #original_type, #original_type_for_derived_types, #parent_type, #relationship, #runtime_field_script, #runtime_metadata_graphql_field, #schema_def_state, #singular_name, #sort_order_enum_value_customizations, #sortable, #source, #sub_aggregations_customizations
Attributes included from Mixins::HasDocumentation
Instance Method Summary collapse
Methods included from Mixins::SupportsDefaultValue
#default, #default_value_sdl, #initialize
Methods inherited from Field
#add_grouped_by_field_documentation, #aggregatable?, #argument, #customize_aggregated_values_field, #customize_filter_field, #customize_grouped_by_field, #customize_sort_order_enum_values, #customize_sub_aggregations_field, #define_aggregated_values_field, #define_grouped_by_field, #define_relay_pagination_arguments!, #define_sub_aggregations_field, #filterable?, #groupable?, #grouped_by_field_name, #grouped_by_field_type_name, #index_leaf?, #initialize, #json_schema, #list_field_groupable_by_single_values?, #mapping_type, #name_in_index, #nested?, #on_each_generated_schema_element, #paths_to_lists_for_count_indexing, pick_most_accurate_from, #renamed_from, #resolve_mapping, #runtime_script, #sortable?, #sourced_from, #sub_aggregatable?, #to_filter_field, #to_indexing_field, #to_indexing_field_reference, #type, #type_for_derived_types
Methods included from Mixins::HasTypeInfo
#json_schema, #json_schema_options, #mapping, #mapping_options
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
Instance Method Details
#to_sdl(type_structure_only: false, default_value_sdl: self.default_value_sdl, &arg_selector) ⇒ Object
25 26 27 |
# File 'lib/elastic_graph/schema_definition/schema_elements/input_field.rb', line 25 def to_sdl(type_structure_only: false, default_value_sdl: self.default_value_sdl, &arg_selector) super(type_structure_only: type_structure_only, default_value_sdl: default_value_sdl, &arg_selector) end |