Class: GraphQL::DSL::FragmentSpread
- Defined in:
- lib/graphql/dsl/nodes/fragment_spread.rb
Overview
Fragment spread GraphQL node
Instance Attribute Summary collapse
-
#__directives ⇒ Array<Directive>
readonly
List of directives.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(name, directives = []) ⇒ FragmentSpread
constructor
Create fragment spread.
Methods inherited from Node
Constructor Details
#initialize(name, directives = []) ⇒ FragmentSpread
Create fragment spread
17 18 19 20 21 |
# File 'lib/graphql/dsl/nodes/fragment_spread.rb', line 17 def initialize(name, directives = []) @__directives = directives.map { |directive| Directive.from(directive) } super(name) end |
Instance Attribute Details
#__directives ⇒ Array<Directive> (readonly)
Returns list of directives.
10 11 12 |
# File 'lib/graphql/dsl/nodes/fragment_spread.rb', line 10 def __directives @__directives end |