Skip to content
Discussion options

You must be logged in to vote

react-query is promise based and agnostic to any data fetching technique. A promise can be resolved, in which case you'll get data, or rejected, in which case you get an error, and potential retries.

if you have one request that somehow returns data for some parts and errors for other parts, like graphql allows you to do (technically, everything graphql does is a resolved promise because everything is 200 - OK on response level 🙈), then the best thing you can do is to resolve the promise, keep everything in data and handle it from there.

So no, it does not follow graphql standards because it's not a graphql specific library. If you need graphql specific features, I'm afraid that is someth…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jim-moody
Comment options

Answer selected by jim-moody
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants