Module: GraphQL::Schema::DefaultTypeError
- Defined in:
- lib/graphql/schema/default_type_error.rb
Class Method Summary collapse
Class Method Details
.call(type_error, ctx) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/graphql/schema/default_type_error.rb', line 5 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 |