Class: GraphQL::Language::Nodes::Document
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::Document
- Defined in:
- lib/graphql/language/nodes.rb
Overview
This is the AST root for normal queries
Constant Summary
Constants inherited from AbstractNode
Instance Attribute Summary collapse
-
#definitions ⇒ Array<OperationDefinition, FragmentDefinition>
Top-level GraphQL units: operations or fragments.
Attributes inherited from AbstractNode
Instance Method Summary collapse
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
#definitions ⇒ Array<OperationDefinition, FragmentDefinition>
Returns top-level GraphQL units: operations or fragments
338 339 340 |
# File 'lib/graphql/language/nodes.rb', line 338 def slice_definition(name) GraphQL::Language::DefinitionSlice.slice(self, name) end |
Instance Method Details
#slice_definition(name) ⇒ Object
338 339 340 |
# File 'lib/graphql/language/nodes.rb', line 338 def slice_definition(name) GraphQL::Language::DefinitionSlice.slice(self, name) end |