Method: GraphQL::Query::Context::FieldResolutionContext#add_error
- Defined in:
- lib/graphql/query/context.rb
#add_error(error) ⇒ void
This method returns an undefined value.
Add error to current field resolution.
304 305 306 307 308 309 |
# File 'lib/graphql/query/context.rb', line 304 def add_error(error) super error.ast_node ||= irep_node.ast_node error.path ||= path nil end |