useErrorHandler does not handle errors from incremental results #2112
Labels
kind/enhancement
New feature or request
stage/4-pull-request
A pull request has been opened that aims to solve the issue
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
minimal reproduction available on
Stackblitz.
@envelop/*
packages that you are using.Describe the bug
The
useErrorHandler
plugin does not check for incremental responses in the execution phase, so any errors that happen in incremental payloads are missed.To Reproduce Steps to reproduce the behavior:
@defer
directive to schemauseErrorHandler
plugin that logs execution phase errors@defer
directiveStackblitz repro: https://stackblitz.com/edit/node-eeltu1?file=start.js
If you run
npm run start
, no errors will be logged. If the@defer
directive is removed from the query, then it is logged.Environment:
@envelop/*
versions:@envelop/core
:5.0.0
The text was updated successfully, but these errors were encountered: