class GraphQL::Language::OperationDefinition
Overview
A query, mutation or subscription.
May be anonymous or named.
May be explicitly typed (eg mutation { ... }
) or implicitly a query (eg { ... }
).
Defined in:
graphql/language/nodes.crConstructors
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #children
- #directives : Array(Directive)
- #directives=(directives : Array(Directive))
-
#hash(hasher)
See
Object#hash(hasher)
- #name : Union(String, Nil)
- #name=(name : Union(String, Nil))
- #operation_type : String
- #operation_type=(operation_type : String)
- #selections : Array(Selection)
- #selections=(selections : Array(Selection))
- #variables : Array(VariableDefinition)
- #variables=(variables : Array(VariableDefinition))
Instance methods inherited from class GraphQL::Language::ASTNode
children
children,
visit(block : ASTNode -> _)
visit
Macros inherited from class GraphQL::Language::ASTNode
values(args)
values
Constructor Detail
def self.new(operation_type : String, name : Nil | String, variables, directives, selections, **rest)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.