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

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

Constant Summary

Constants inherited from AbstractNode

AbstractNode::NO_CHILDREN

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#filename

Instance Method Summary collapse

Methods inherited from AbstractNode

#==, #children, #children_method_name, children_of_type, #col, #definition_line, #delete_child, inherited, #initialize_copy, #line, #position, #replace_child, #scalars, #to_query_string

Instance Attribute Details

#commentObject (readonly)

Returns the value of attribute comment.



672
673
674
# File 'lib/graphql/language/nodes.rb', line 672

def comment
  @comment
end

#descriptionObject (readonly)

Returns the value of attribute description.



672
673
674
# File 'lib/graphql/language/nodes.rb', line 672

def description
  @description
end

Instance Method Details

#merge(new_options) ⇒ Object



683
684
685
686
687
688
# File 'lib/graphql/language/nodes.rb', line 683

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