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.2 lib/graphql/schema/default_type_error.rb
graphql-1.8.1 lib/graphql/schema/default_type_error.rb
graphql-1.8.0 lib/graphql/schema/default_type_error.rb
graphql-1.8.0.pre11 lib/graphql/schema/default_type_error.rb
graphql-1.8.0.pre10 lib/graphql/schema/default_type_error.rb
graphql-1.7.14 lib/graphql/schema/default_type_error.rb
graphql-1.8.0.pre9 lib/graphql/schema/default_type_error.rb
graphql-1.8.0.pre8 lib/graphql/schema/default_type_error.rb
graphql-1.7.13 lib/graphql/schema/default_type_error.rb
graphql-1.8.0.pre7 lib/graphql/schema/default_type_error.rb
graphql-1.7.12 lib/graphql/schema/default_type_error.rb
graphql-1.7.11 lib/graphql/schema/default_type_error.rb
graphql-1.7.10 lib/graphql/schema/default_type_error.rb
graphql-1.8.0.pre6 lib/graphql/schema/default_type_error.rb
graphql-1.8.0.pre5 lib/graphql/schema/default_type_error.rb
graphql-1.7.9 lib/graphql/schema/default_type_error.rb
graphql-1.8.0.pre4 lib/graphql/schema/default_type_error.rb
graphql-1.8.0.pre3 lib/graphql/schema/default_type_error.rb
graphql-1.7.8 lib/graphql/schema/default_type_error.rb
graphql-1.8.0.pre2 lib/graphql/schema/default_type_error.rb