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.cr

Constructors

Instance Method Summary

Instance methods inherited from class GraphQL::Language::ASTNode

children children, visit(block : ASTNode -> _) visit

Constructor Detail

def self.new(operation_type : String, name : Nil | String, variables, directives, selections, **rest) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

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


def children #

[View source]
def directives : Array(Directive) #

def directives=(directives : Array(Directive)) #

def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def name : Union(String, Nil) #

def name=(name : Union(String, Nil)) #

def operation_type : String #

def operation_type=(operation_type : String) #

def selections : Array(Selection) #

def selections=(selections : Array(Selection)) #

def variables : Array(VariableDefinition) #

def variables=(variables : Array(VariableDefinition)) #