Closed wanghq closed 2 years ago
Can anyone take a look? The problem is obvious with re-pro. I tried to debug the problem and the request got lost when this handleFieldError
return null.
https://github.com/graphql/graphql-js/blob/main/src/execution/execute.ts#L532
This will be fixed in the next release of @nestjs/core
. Here's the corresponding commit https://github.com/nestjs/nest/pull/9588/commits/8ca45b31639a42262875280b4c61fe76bc9b8688
Hi @kamilmysliwiec , thanks for the update! Will the fix be released to v8.x.x? When will the next release happen?
update: seems the fix is merged to the v9 branch. Does this mean we have to upgrade nest to v9 to have this fix?
Is there an existing issue for this?
Current behavior
For this code: https://github.com/wanghq/nestjs-graphql-hanging-req/blob/master/src/app.resolver.ts#L41-L69
Req hangs if more than 1 subfields depend on connection which throws error.
Req doesn't hang if 1 subfield depends on connection which throws error.
Minimum reproduction code
https://github.com/wanghq/nestjs-graphql-hanging-req
Steps to reproduce
No response
Expected behavior
nestjs should return response with extra error info.
Package
Other package
https://github.com/graphql/graphql-js
NestJS version
8.1.4
Packages versions
Node.js version
v18.0.0
In which operating systems have you tested?
Other
No response