Sha256: e3a9913cfad1b0b61d6a9f4571a8ccaa1af52a65739d9adc0a66a904c23eff2b

Contents?: true

Size: 300 Bytes

Versions: 6

Compression:

Stored size: 300 Bytes

Contents

module GraphQL
  module ResultCache
    module Introspection
      class FieldType < ::GraphQL::Introspection::FieldType

        def type
          @object.metadata[:original_non_null] && !@object.type.non_null? ? @object.type.to_non_null_type : @object.type
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
graphql-result_cache-0.1.8 lib/graphql/result_cache/introspection/field_type.rb
graphql-result_cache-0.1.7 lib/graphql/result_cache/introspection/field_type.rb
graphql-result_cache-0.1.6 lib/graphql/result_cache/introspection/field_type.rb
graphql-result_cache-0.1.5 lib/graphql/result_cache/introspection/field_type.rb
graphql-result_cache-0.1.4 lib/graphql/result_cache/introspection/field_type.rb
graphql-result_cache-0.1.3 lib/graphql/result_cache/introspection/field_type.rb