Sha256: 1240ecc2947405d1a4bfa40d6c82d6d29788a4564b1635ed05e7d7ef00e24186
Contents?: true
Size: 759 Bytes
Versions: 117
Compression:
Stored size: 759 Bytes
Contents
# frozen_string_literal: true module GraphQL module InternalRepresentation class Document # @return [Hash<String, Node>] Operation Nodes of this query attr_reader :operation_definitions # @return [Hash<String, Node>] Fragment definition Nodes of this query attr_reader :fragment_definitions def initialize @operation_definitions = {} @fragment_definitions = {} end def [](key) warn "#{self.class}#[] is deprecated; use `operation_definitions[]` instead" operation_definitions[key] end def each(&block) warn "#{self.class}#each is deprecated; use `operation_definitions.each` instead" operation_definitions.each(&block) end end end end
Version data entries
117 entries across 117 versions & 1 rubygems