Class: GraphQL::Language::Nodes::FragmentDefinition
- Inherits:
 - 
      AbstractNode
      
        
- Object
 - AbstractNode
 - GraphQL::Language::Nodes::FragmentDefinition
 
 
- Defined in:
 - lib/graphql/language/nodes.rb
 
Overview
A reusable fragment, defined at document-level.
Constant Summary
Constants inherited from AbstractNode
Instance Attribute Summary collapse
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The identifier for this fragment, which may be applied with
...#{name}. - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type condition for this fragment (name of type which it may apply to).
 
Attributes inherited from AbstractNode
Instance Method Summary collapse
- 
  
    
      #children_method_name  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
 - 
  
    
      #initialize_node(name: nil, type: nil, directives: [], selections: [])  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
 
Methods inherited from AbstractNode
#children, #delete_child, #eql?, inherited, #initialize, #initialize_copy, #merge, #position, #replace_child, #scalars, #to_query_string, #visit_method
Constructor Details
This class inherits a constructor from GraphQL::Language::Nodes::AbstractNode
Instance Attribute Details
#name ⇒ String
Returns the identifier for this fragment, which may be applied with ...#{name}
| 
       | 
    
      # File 'lib/graphql/language/nodes.rb', line 376
     | 
  
#type ⇒ String
Returns the type condition for this fragment (name of type which it may apply to)
      381 382 383 384 385 386  | 
    
      # File 'lib/graphql/language/nodes.rb', line 381 def initialize_node(name: nil, type: nil, directives: [], selections: []) @name = name @type = type @directives = directives @selections = selections end  | 
  
Instance Method Details
#children_method_name ⇒ Object
      388 389 390  | 
    
      # File 'lib/graphql/language/nodes.rb', line 388 def children_method_name :definitions end  | 
  
#initialize_node(name: nil, type: nil, directives: [], selections: []) ⇒ Object
      381 382 383 384 385 386  | 
    
      # File 'lib/graphql/language/nodes.rb', line 381 def initialize_node(name: nil, type: nil, directives: [], selections: []) @name = name @type = type @directives = directives @selections = selections end  |