frederic
01/07/2022, 12:27 PMfrederic
01/07/2022, 12:27 PMfrederic
01/07/2022, 12:27 PMrp
01/07/2022, 12:27 PMfrederic
01/07/2022, 12:39 PMrp
01/07/2022, 12:39 PMuser
01/08/2022, 1:17 PMrp
01/08/2022, 1:18 PMrp
01/08/2022, 1:19 PMrp
01/08/2022, 1:19 PMuser
01/08/2022, 1:20 PMkdaniel21
01/08/2022, 4:30 PM/auth/signin
.
On top of that I'm using GraphQL by default, which obviously wouldn't really interfere, still, the error filter applies to that part of the application as well. The main problem is that the errorHandler
expects next
(NextFunction
to be passed in as the 4th argument, yet NestJS/`apollo-server-express` does not seem to expose that.
When inspecting what the result of ctx.getNext()
, it appears to be a normal context object, containing the request
etc.rp
01/08/2022, 4:32 PMrp
01/08/2022, 4:34 PMkdaniel21
01/08/2022, 4:34 PMrp
01/08/2022, 4:35 PMkdaniel21
01/08/2022, 4:37 PMrp
01/08/2022, 4:37 PMrp
01/08/2022, 4:38 PMrp
01/08/2022, 4:39 PMrp
01/08/2022, 4:39 PMkdaniel21
01/08/2022, 4:40 PMrp
01/08/2022, 4:40 PMrp
01/08/2022, 4:42 PMrp
01/08/2022, 4:44 PMSTError
anyway.kdaniel21
01/08/2022, 4:44 PMnext
is present (which should be the case for the normal REST endpoints), then I can use the original functionality.rp
01/08/2022, 4:46 PMteja
01/09/2022, 12:42 PMrp
01/09/2022, 12:43 PM