Sha256: 4fbcf067c8777ef6c88bb24a2bd7da9043f0eff5a141803725ec3f12523e4673

Contents?: true

Size: 672 Bytes

Versions: 90

Compression:

Stored size: 672 Bytes

Contents

# frozen_string_literal: true

module GraphQL
  class Schema
    class Wrapper
      include GraphQL::Schema::Member::CachedGraphQLDefinition
      include GraphQL::Schema::Member::TypeSystemHelpers

      # @return [Class, Module] The inner type of this wrapping type, the type of which one or more objects may be present.
      attr_reader :of_type

      def initialize(of_type)
        @of_type = of_type
      end

      def to_graphql
        raise GraphQL::RequiredImplementationMissingError
      end

      def unwrap
        @of_type.unwrap
      end

      def ==(other)
        self.class == other.class && of_type == other.of_type
      end
    end
  end
end

Version data entries

90 entries across 90 versions & 2 rubygems

Version Path
graphql-1.11.12 lib/graphql/schema/wrapper.rb
graphql-1.11.11 lib/graphql/schema/wrapper.rb
graphql-1.12.25 lib/graphql/schema/wrapper.rb
graphql-1.13.24 lib/graphql/schema/wrapper.rb
graphql-1.13.23 lib/graphql/schema/wrapper.rb
graphql-1.13.22 lib/graphql/schema/wrapper.rb
graphql-1.13.21 lib/graphql/schema/wrapper.rb
graphql-1.13.20 lib/graphql/schema/wrapper.rb
graphql-1.13.19 lib/graphql/schema/wrapper.rb
graphql-1.13.18 lib/graphql/schema/wrapper.rb
graphql-1.13.17 lib/graphql/schema/wrapper.rb
graphql-1.13.16 lib/graphql/schema/wrapper.rb
graphql-1.13.15 lib/graphql/schema/wrapper.rb
graphql-1.13.14 lib/graphql/schema/wrapper.rb
graphql-1.13.13 lib/graphql/schema/wrapper.rb
graphql_cody-1.13.0 lib/graphql/schema/wrapper.rb
graphql-1.13.12 lib/graphql/schema/wrapper.rb
graphql-1.13.11 lib/graphql/schema/wrapper.rb
graphql-1.13.10 lib/graphql/schema/wrapper.rb
graphql-1.13.9 lib/graphql/schema/wrapper.rb