class GraphQL::Language::InlineFragment
- GraphQL::Language::InlineFragment
- GraphQL::Language::ASTNode
- Reference
- Object
Overview
An unnamed fragment, defined directly in the query with ... { }
Defined in:
graphql/language/nodes.crConstant 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
-
.new(type, directives, selections, **rest)
An unnamed fragment, defined directly in the query with `...
Class Method Summary
-
.values
An unnamed fragment, defined directly in the query with `...
Macro Summary
-
accessors(name, type, default)
An unnamed fragment, defined directly in the query with `...
-
traverse(name, *values)
An unnamed fragment, defined directly in the query with `...
-
values(args)
An unnamed fragment, defined directly in the query with `...
Instance Method Summary
-
#==(other : GraphQL::Language::InlineFragment)
An unnamed fragment, defined directly in the query with `...
-
#clone
Returns a copy of
self
with all instance variables cloned. - #directives : Array(Directive)
- #directives=(directives : Array(Directive))
-
#map_children(&block : ASTNode -> _)
An unnamed fragment, defined directly in the query with `...
- #selections : Array(Selection)
- #selections=(selections : Array(Selection))
- #type : Union(Type, Nil)
- #type=(type : Union(Type, Nil))
-
#values
An unnamed fragment, defined directly in the query with `...
-
#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.
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
An unnamed fragment, defined directly in the query with ... { }
Class Method Detail
Macro Detail
An unnamed fragment, defined directly in the query with ... { }
Instance Method Detail
An unnamed fragment, defined directly in the query with ... { }
An unnamed fragment, defined directly in the query with ... { }
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.