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.8.18 lib/graphql/schema/default_type_error.rb
graphql-1.8.17 lib/graphql/schema/default_type_error.rb
graphql-1.8.16 lib/graphql/schema/default_type_error.rb
graphql-1.8.15 lib/graphql/schema/default_type_error.rb
graphql-1.9.0.pre4 lib/graphql/schema/default_type_error.rb
graphql-1.8.14 lib/graphql/schema/default_type_error.rb
graphql-1.9.0.pre3 lib/graphql/schema/default_type_error.rb
graphql-1.9.0.pre2 lib/graphql/schema/default_type_error.rb
graphql-1.8.13 lib/graphql/schema/default_type_error.rb
graphql-1.8.12 lib/graphql/schema/default_type_error.rb
graphql-1.9.0.pre1 lib/graphql/schema/default_type_error.rb
graphql-1.8.11 lib/graphql/schema/default_type_error.rb
graphql-1.8.10 lib/graphql/schema/default_type_error.rb
graphql-1.8.9 lib/graphql/schema/default_type_error.rb
graphql-1.8.8 lib/graphql/schema/default_type_error.rb
graphql-1.8.7 lib/graphql/schema/default_type_error.rb
graphql-1.8.6 lib/graphql/schema/default_type_error.rb
graphql-1.8.5 lib/graphql/schema/default_type_error.rb
graphql-1.8.4 lib/graphql/schema/default_type_error.rb
graphql-1.8.3 lib/graphql/schema/default_type_error.rb