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, #children_method_name, #delete_child, inherited, #initialize, #initialize_copy, #merge, #position, #replace_child, #scalars, #to_query_string
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.
352 353 354 |
# File 'lib/graphql/language/nodes.rb', line 352 def slice_definition(name) GraphQL::Language::DefinitionSlice.slice(self, name) end |
Instance Method Details
#slice_definition(name) ⇒ Object
352 353 354 |
# File 'lib/graphql/language/nodes.rb', line 352 def slice_definition(name) GraphQL::Language::DefinitionSlice.slice(self, name) end |