class

GraphQL::Language::OperationDefinition

Inherits GraphQL::Language::ASTNode < Reference < Object

A query, mutation or subscription. May be anonymous or named. May be explicitly typed (eg mutation { ... }) or implicitly a query (eg { ... }).

Constructors

new(operation_type : String, name : Nil | String, variables, directives, selections, **rest)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

children
Source
directives
directives=(directives : Array(Directive))
hash(hasher)

See Object#hash(hasher)

name
name=(name : Union(String, Nil))
operation_type
operation_type=(operation_type : String)
selections
selections=(selections : Array(Selection))
variables
variables=(variables : Array(VariableDefinition))