Module: ElasticGraph::SchemaDefinition::Mixins::CanBeGraphQLOnly
- Included in:
- SchemaElements::EnumType, SchemaElements::ScalarType, SchemaElements::TypeWithSubfields, SchemaElements::UnionType
- Defined in:
- elasticgraph-schema_definition/lib/elastic_graph/schema_definition/mixins/can_be_graphql_only.rb
Overview
Used to indicate if a type only exists in the GraphQL schema (e.g. it has no indexing component).
Instance Method Summary collapse
-
#graphql_only(value) ⇒ void
Sets whether or not this type only exists in the GraphQL schema.
-
#graphql_only? ⇒ Boolean
Whether or not this type only exists in the GraphQL schema.
Instance Method Details
#graphql_only(value) ⇒ void
This method returns an undefined value.
Sets whether or not this type only exists in the GraphQL schema
20 21 22 |
# File 'elasticgraph-schema_definition/lib/elastic_graph/schema_definition/mixins/can_be_graphql_only.rb', line 20 def graphql_only(value) @graphql_only = value end |
#graphql_only? ⇒ Boolean
Returns whether or not this type only exists in the GraphQL schema.
25 26 27 |
# File 'elasticgraph-schema_definition/lib/elastic_graph/schema_definition/mixins/can_be_graphql_only.rb', line 25 def graphql_only? !!@graphql_only end |