module GraphQL::Schema::DefaultTypeError

Public Class Methods

call(type_error, ctx) click to toggle source
# File lib/graphql/schema/default_type_error.rb, line 4
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