Method: GraphQL::Schema#type_error
- Defined in:
- lib/graphql/schema.rb
#type_error(err, ctx) ⇒ Object
When we encounter a type error during query execution, we call this hook.
You can use this hook to write a log entry,
add a ExecutionError to the response (with ctx.add_error)
or raise an exception and halt query execution.
459 460 461 |
# File 'lib/graphql/schema.rb', line 459 def type_error(err, ctx) @type_error_proc.call(err, ctx) end |