Issue workflow progress
Progress of the issue based on the
Contributor Workflow
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:
- Add
@defer directive to schema
- Add
useErrorHandler plugin that logs execution phase errors
- Query a field that throws an error with the
@defer directive
- Error handler is never called
Stackblitz 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:
- OS: Mac
- NodeJS: 20.7.0
@envelop/* versions:
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
useErrorHandlerplugin 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:
@deferdirective to schemauseErrorHandlerplugin that logs execution phase errors@deferdirectiveStackblitz repro: https://stackblitz.com/edit/node-eeltu1?file=start.js
If you run
npm run start, no errors will be logged. If the@deferdirective is removed from the query, then it is logged.Environment:
@envelop/*versions:@envelop/core:5.0.0