Class: GraphQL::Language::Nodes::FieldDefinition

Inherits:
AbstractNode
  • Object
show all
Includes:
DefinitionNode
Defined in:
lib/graphql/language/nodes.rb

Constant Summary

Constants inherited from AbstractNode

AbstractNode::NO_CHILDREN

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#col, #filename, #line

Instance Method Summary collapse

Methods inherited from AbstractNode

#children, #delete_child, #eql?, inherited, #initialize, #initialize_copy, #position, #replace_child, #scalars, #to_query_string, #visit_method

Constructor Details

This class inherits a constructor from GraphQL::Language::Nodes::AbstractNode

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description



579
580
581
# File 'lib/graphql/language/nodes.rb', line 579

def description
  @description
end

Instance Method Details

#children_method_nameObject



585
586
587
# File 'lib/graphql/language/nodes.rb', line 585

def children_method_name
  :fields
end

#merge(new_options) ⇒ Object



592
593
594
595
596
597
# File 'lib/graphql/language/nodes.rb', line 592

def merge(new_options)
  if (f = new_options.delete(:fields))
    new_options[:arguments] = f
  end
  super
end