class GraphQL::InternalRepresentation::Document
Attributes
fragment_definitions[R]
@return [Hash<String, Node>] Fragment definition Nodes of this query
operation_definitions[R]
@return [Hash<String, Node>] Operation Nodes of this query
Public Class Methods
new()
click to toggle source
# File lib/graphql/internal_representation/document.rb, line 10 def initialize @operation_definitions = {} @fragment_definitions = {} end
Public Instance Methods
[](key)
click to toggle source
# File lib/graphql/internal_representation/document.rb, line 15 def [](key) warn "#{self.class}#[] is deprecated; use `operation_definitions[]` instead" operation_definitions[key] end
each(&block)
click to toggle source
# File lib/graphql/internal_representation/document.rb, line 20 def each(&block) warn "#{self.class}#each is deprecated; use `operation_definitions.each` instead" operation_definitions.each(&block) end