Class: GraphQL::Language::Nodes::OperationDefinition
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::OperationDefinition
- Defined in:
- lib/graphql/language/nodes.rb
Overview
A query, mutation or subscription.
May be anonymous or named.
May be explicitly typed (eg mutation { ... }
) or implicitly a query (eg { ... }
).
Constant Summary
Constants inherited from AbstractNode
Instance Attribute Summary collapse
-
#operation_type ⇒ String?
The root type for this operation, or
nil
for implicit"query"
. -
#selections ⇒ Array<Field>
Root-level fields on this operation.
-
#variables ⇒ Array<VariableDefinition>
Variable $definitions for this operation.
Attributes inherited from AbstractNode
Method Summary
Methods inherited from AbstractNode
#==, #children, #children_method_name, #delete_child, inherited, #initialize, #initialize_copy, #merge, #position, #replace_child, #scalars, #to_query_string
Constructor Details
This class inherits a constructor from GraphQL::Language::Nodes::AbstractNode
Instance Attribute Details
#operation_type ⇒ String?
Returns The root type for this operation, or nil
for implicit "query"
.
|
# File 'lib/graphql/language/nodes.rb', line 511
|
#selections ⇒ Array<Field>
Returns Root-level fields on this operation.
|
# File 'lib/graphql/language/nodes.rb', line 508
|
#variables ⇒ Array<VariableDefinition>
Returns Variable $definitions for this operation.
|
# File 'lib/graphql/language/nodes.rb', line 505
|