-
In some cases, for example a list of documents, there is an error with a few of the documents but the rest of the documents are returned successfully. However, react-query does not return any |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
react-query is promise based and agnostic to any data fetching technique. A promise can be resolved, in which case you'll get 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 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 something that react-query cannot offer. |
Beta Was this translation helpful? Give feedback.
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 anerror
, 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…