Class: GraphQL::Language::Nodes::FieldDefinition
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::FieldDefinition
- Includes:
- DefinitionNode
- Defined in:
- lib/graphql/language/nodes.rb
Constant Summary
Constants inherited from AbstractNode
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Attributes inherited from AbstractNode
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
592 593 594 |
# File 'lib/graphql/language/nodes.rb', line 592 def description @description end |
Instance Method Details
#children_method_name ⇒ Object
598 599 600 |
# File 'lib/graphql/language/nodes.rb', line 598 def children_method_name :fields end |
#merge(new_options) ⇒ Object
605 606 607 608 609 610 |
# File 'lib/graphql/language/nodes.rb', line 605 def merge() if (f = .delete(:fields)) [:arguments] = f end super end |