Sha256: a134d2c9abd5ad78c8dd7781c194077f6d29f84f4a20d83c4aa8b2b32083747a

Contents?: true

Size: 332 Bytes

Versions: 10

Compression:

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
graphql-1.5.5 lib/graphql/schema/default_type_error.rb
graphql-1.5.4 lib/graphql/schema/default_type_error.rb
graphql-1.5.3 lib/graphql/schema/default_type_error.rb
graphql-1.4.5 lib/graphql/schema/default_type_error.rb
graphql-1.4.4 lib/graphql/schema/default_type_error.rb
graphql-1.4.3 lib/graphql/schema/default_type_error.rb
graphql-1.4.2 lib/graphql/schema/default_type_error.rb
graphql-1.4.1 lib/graphql/schema/default_type_error.rb
graphql-1.4.0 lib/graphql/schema/default_type_error.rb
graphql-1.3.0 lib/graphql/schema/default_type_error.rb