You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Trying to get help from discord for over a week with no luck, hence posting it here)
I'm integrating two data sources in a search component; need to handle API failures by communicating errors to the frontend without crashing the app (using throw new Error crashes the app). Tried using interceptors and context for error handling without success; looking for advice.
Project has @nestjs/graphql for server-side and Apollo Client for client-side.
Data entity comprises of a union of two types, say foo and bar.
No url, but please refer to the module and service in the description
Steps to reproduce
No response
Expected behavior
I should be able to access the error object in @context and be able to set custom error message, along with sending a partial data. I read through the docs and tried several approaches in vain.
Is there an existing issue for this?
Current behavior
(Trying to get help from discord for over a week with no luck, hence posting it here)
I'm integrating two data sources in a search component; need to handle API failures by communicating errors to the frontend without crashing the app (using throw new Error crashes the app). Tried using interceptors and context for error handling without success; looking for advice.
Project has @nestjs/graphql for server-side and Apollo Client for client-side.
Data entity comprises of a union of two types, say foo and bar.
Minimum reproduction code
No url, but please refer to the module and service in the description
Steps to reproduce
No response
Expected behavior
I should be able to access the error object in @context and be able to set custom error message, along with sending a partial data. I read through the docs and tried several approaches in vain.
Package version
12.0.11
Graphql version
graphql
: 16.8.1@nestjs/platform-express
: 10.3.0apollo-server-express
:apollo-server-fastify
:NestJS version
10.3.0
Node.js version
18.7.1
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: