Sha256: 35e4281bbf88a1e3809dece3e62181fe189459144335007efd2c6d6936a2c4d2

Contents?: true

Size: 362 Bytes

Versions: 69

Compression:

Stored size: 362 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
          raise type_error
        end
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
graphql-1.7.7 lib/graphql/schema/default_type_error.rb
graphql-1.8.0.pre1 lib/graphql/schema/default_type_error.rb
graphql-1.7.6 lib/graphql/schema/default_type_error.rb
graphql-1.7.5 lib/graphql/schema/default_type_error.rb
graphql-1.7.4 lib/graphql/schema/default_type_error.rb
graphql-1.7.3 lib/graphql/schema/default_type_error.rb
graphql-1.7.2 lib/graphql/schema/default_type_error.rb
graphql-1.7.1 lib/graphql/schema/default_type_error.rb
graphql-1.7.0 lib/graphql/schema/default_type_error.rb
graphql-1.6.8 lib/graphql/schema/default_type_error.rb
graphql-1.6.7 lib/graphql/schema/default_type_error.rb
graphql-1.6.6 lib/graphql/schema/default_type_error.rb
graphql-1.6.5 lib/graphql/schema/default_type_error.rb
graphql-1.6.4 lib/graphql/schema/default_type_error.rb
graphql-1.5.15 lib/graphql/schema/default_type_error.rb
graphql-1.6.3 lib/graphql/schema/default_type_error.rb
graphql-1.6.2 lib/graphql/schema/default_type_error.rb
graphql-1.6.1 lib/graphql/schema/default_type_error.rb
graphql-1.6.0 lib/graphql/schema/default_type_error.rb
graphql-1.5.14 lib/graphql/schema/default_type_error.rb