-
Hi, I have the following resolver method:
and my server setup is:
The Authentication error thrown inside the signIn resolver method never reaches my client. If I throw the same errors from a Middleware/Guard using @UserMiddleware() decorator the error reaches client-side. I'd like to be able to throw ApolloError from inside my resolver methods and see them propagate to my client (see https://www.apollographql.com/docs/apollo-server/data/errors) Am I doing something wrong? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I finally found that I was using another middleware (TypegooseMiddleware) that was swallowing my errors. So now everything works ok. |
Beta Was this translation helpful? Give feedback.
I finally found that I was using another middleware (TypegooseMiddleware) that was swallowing my errors.
So now everything works ok.