class GraphQL::Language::FragmentSpread
- GraphQL::Language::FragmentSpread
- GraphQL::Language::ASTNode
- Reference
- Object
Overview
Application of a named fragment in a selection
Defined in:
graphql/language/nodes.crConstant Summary
-
VALUES =
[{name, String}, {directives, Array(Directive)}] of Tuple(Symbol, Object.class)
-
Application of a named fragment in a selection
-
VISITS =
[{:children, [:directives]}] of Tuple(Symbol, Array(Symbol))
-
Application of a named fragment in a selection
Constructors
-
.new(name, directives, **rest)
Application of a named fragment in a selection
Class Method Summary
-
.values
Application of a named fragment in a selection
Macro Summary
-
accessors(name, type, default)
Application of a named fragment in a selection
-
traverse(name, *values)
Application of a named fragment in a selection
-
values(args)
Application of a named fragment in a selection
Instance Method Summary
-
#==(other : GraphQL::Language::FragmentSpread)
Application of a named fragment in a selection
-
#clone
Returns a copy of
self
with all instance variables cloned. - #directives : Array(Directive)
- #directives=(directives : Array(Directive))
-
#map_children(&block : ASTNode -> _)
Application of a named fragment in a selection
- #name : String
- #name=(name : String)
-
#values
Application of a named fragment in a selection
-
#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
Class Method Detail
Macro Detail
Instance Method Detail
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.