Sha256: 184e12836e377a08bd58aade3728abfbd2a10308d8067d08f592a15c64658676

Contents?: true

Size: 450 Bytes

Versions: 54

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  class Schema
    module DefaultTypeError
      def self.call(type_error, ctx)
        case type_error
        when GraphQL::InvalidNullError
          ctx.errors << type_error
        when GraphQL::UnresolvedTypeError, GraphQL::StringEncodingError, GraphQL::IntegerEncodingError
          raise type_error
        when GraphQL::IntegerDecodingError
          nil
        end
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 2 rubygems

Version Path
graphql-1.13.23 lib/graphql/schema/default_type_error.rb
graphql-1.13.22 lib/graphql/schema/default_type_error.rb
graphql-1.13.21 lib/graphql/schema/default_type_error.rb
graphql-1.13.20 lib/graphql/schema/default_type_error.rb
graphql-1.13.19 lib/graphql/schema/default_type_error.rb
graphql-1.13.18 lib/graphql/schema/default_type_error.rb
graphql-1.13.17 lib/graphql/schema/default_type_error.rb
graphql-1.13.16 lib/graphql/schema/default_type_error.rb
graphql-1.13.15 lib/graphql/schema/default_type_error.rb
graphql-1.13.14 lib/graphql/schema/default_type_error.rb
graphql-1.13.13 lib/graphql/schema/default_type_error.rb
graphql_cody-1.13.0 lib/graphql/schema/default_type_error.rb
graphql-1.13.12 lib/graphql/schema/default_type_error.rb
graphql-1.13.11 lib/graphql/schema/default_type_error.rb
graphql-1.13.10 lib/graphql/schema/default_type_error.rb
graphql-1.13.9 lib/graphql/schema/default_type_error.rb
graphql-1.12.24 lib/graphql/schema/default_type_error.rb
graphql-1.13.8 lib/graphql/schema/default_type_error.rb
graphql-1.13.7 lib/graphql/schema/default_type_error.rb
graphql-1.13.6 lib/graphql/schema/default_type_error.rb