-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client throwing error instead of returning error in query #12219
Comments
This is a difference between the Since this is a core Apollo Client issue, I'm moving it over to https://github.com/apollographql/apollo-client |
Related issues: Was this useful? Use the thumbs up or thumbs down reaction to give feedback. |
This is hinted at in the docblock of
I'll try to make a table here:
I'd reduce it to these rules:
|
Thank you for the explanation @phryneas !! This is really helpful |
I'm setting up Graphql on my app but I'm facing an issue where the client throws an error if the api call fails instead of returning in the query.errors property. One important note is that I'm fetching data in a React Server Component
Versions:
Next.js - 14.2.11
React - 18.3.1
@apollo/client- 3.12.2,
@apollo/experimental-nextjs-app-support - 0.11.7,
Here is how I am registering the client:
And here is how I'm fetching data:
Any help would be really appreciated!
The text was updated successfully, but these errors were encountered: