Class: GraphQL::Language::Nodes::InputObject
- Inherits:
 - 
      AbstractNode
      
        
- Object
 - AbstractNode
 - GraphQL::Language::Nodes::InputObject
 
 
- Defined in:
 - lib/graphql/language/nodes.rb
 
Overview
A collection of key-value inputs which may be a field argument
Constant Summary
Constants inherited from AbstractNode
Instance Attribute Summary collapse
- 
  
    
      #arguments  ⇒ Array<Nodes::Argument> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A list of key-value pairs inside this input object.
 
Attributes inherited from AbstractNode
Instance Method Summary collapse
- 
  
    
      #to_h(options = {})  ⇒ Hash<String, Any> 
    
    
  
  
  
  
  
  
  
  
  
    
Recursively turn this input object into a Ruby Hash.
 
Methods inherited from AbstractNode
#==, #children, #children_method_name, children_of_type, #col, #definition_line, #delete_child, inherited, #initialize_copy, #line, #merge, #position, #replace_child, #scalars, #to_query_string
Instance Attribute Details
#arguments ⇒ Array<Nodes::Argument>
Returns A list of key-value pairs inside this input object.
| 
       | 
    
      # File 'lib/graphql/language/nodes.rb', line 507
     | 
  
Instance Method Details
#to_h(options = {}) ⇒ Hash<String, Any>
Returns Recursively turn this input object into a Ruby Hash.
      511 512 513 514 515 516 517  | 
    
      # File 'lib/graphql/language/nodes.rb', line 511 def to_h(={}) arguments.inject({}) do |memo, pair| v = pair.value memo[pair.name] = serialize_value_for_hash v memo end end  |