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.9.7 lib/graphql/schema/default_type_error.rb
graphql-1.9.6 lib/graphql/schema/default_type_error.rb
graphql-1.9.5 lib/graphql/schema/default_type_error.rb
graphql-1.9.4 lib/graphql/schema/default_type_error.rb
graphql-1.9.3 lib/graphql/schema/default_type_error.rb
graphql-1.9.2 lib/graphql/schema/default_type_error.rb
graphql-1.9.1 lib/graphql/schema/default_type_error.rb
graphql-1.9.0 lib/graphql/schema/default_type_error.rb