class GraphQL::Language::InlineFragment

Overview

An unnamed fragment, defined directly in the query with ... { }

Defined in:

graphql/language/nodes.cr

Constant Summary

VALUES = [{type, ::Union(Type, ::Nil)}, {directives, Array(Directive)}, {selections, Array(Selection)}] of Tuple(Symbol, Object.class)

An unnamed fragment, defined directly in the query with ... { }

VISITS = [{:children, [:type, :directives, :selections]}] of Tuple(Symbol, Array(Symbol))

An unnamed fragment, defined directly in the query with ... { }

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

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

==(other) ==, clone clone, values values

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

values values

Macros inherited from class GraphQL::Language::ASTNode

accessors(name, type, default) accessors, make_value_methods make_value_methods, traverse(name, *values) traverse, values(args) values

Constructor Detail

def self.new(type, directives, selections, **rest) #

An unnamed fragment, defined directly in the query with ... { }


Class Method Detail

def self.values #

An unnamed fragment, defined directly in the query with ... { }


Macro Detail

macro accessors(name, type, default) #

An unnamed fragment, defined directly in the query with ... { }


macro traverse(name, *values) #

An unnamed fragment, defined directly in the query with ... { }


macro values(args) #

An unnamed fragment, defined directly in the query with ... { }


Instance Method Detail

An unnamed fragment, defined directly in the query with ... { }


def clone #

Returns a copy of self with all instance variables cloned.


def directives : Array(Directive) #

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

def map_children(&block : ASTNode -> _) #

An unnamed fragment, defined directly in the query with ... { }


def selections : Array(Selection) #

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

def type : Union(Type, Nil) #

def type=(type : Union(Type, Nil)) #

def values #

An unnamed fragment, defined directly in the query with ... { }


def visit(name, visited_ids = [] of UInt64, block = Proc(ASTNode, ASTNode | ::Nil).new do end) #

Recursively apply the given block to each node that gets visited with the given key which nodes get traverses for a given key can be set on a class via the: traverse :name, :child_1, :child2 macro. If no children are defined for a given traversal path name the block is invoked only with self.ode that gets visited with the given key which nodes get traverses for a given key can be set on a class via the: traverse :name, :child_1, :child2 macro. If no children are defined for a given traversal path name the block is invoked only with self.