Sha256: 580ac95b60d13298373f466b3c20c89264859b8975d7c8d0d018c55e0fceeb11

Contents?: true

Size: 393 Bytes

Versions: 48

Compression:

Stored size: 393 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
        end
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
graphql-1.11.6 lib/graphql/schema/default_type_error.rb
graphql-1.11.5 lib/graphql/schema/default_type_error.rb
graphql-1.11.4 lib/graphql/schema/default_type_error.rb
graphql-1.11.3 lib/graphql/schema/default_type_error.rb
graphql-1.11.2 lib/graphql/schema/default_type_error.rb
graphql-1.10.14 lib/graphql/schema/default_type_error.rb
graphql-1.11.1 lib/graphql/schema/default_type_error.rb
graphql-1.10.13 lib/graphql/schema/default_type_error.rb
graphql-1.11.0 lib/graphql/schema/default_type_error.rb
graphql-1.10.12 lib/graphql/schema/default_type_error.rb
graphql-1.9.21 lib/graphql/schema/default_type_error.rb
graphql-1.10.11 lib/graphql/schema/default_type_error.rb
graphql-1.9.20 lib/graphql/schema/default_type_error.rb
graphql-1.10.10 lib/graphql/schema/default_type_error.rb
graphql-1.10.9 lib/graphql/schema/default_type_error.rb
graphql-1.10.8 lib/graphql/schema/default_type_error.rb
graphql-1.10.7 lib/graphql/schema/default_type_error.rb
graphql-1.10.6 lib/graphql/schema/default_type_error.rb
graphql-1.10.5 lib/graphql/schema/default_type_error.rb
graphql-1.10.4 lib/graphql/schema/default_type_error.rb