Skip to content
Discussion options

You must be logged in to vote

I think the easiest way would be to handle it on the mutation function itself. You can either:

  • handle this on the server - send a failure status code with a warning / error instead of a successful response.
  • map to an erroneous response on the client in the mutate function: await the actual result from the backend and then transform / throw if it wasn't really successful.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jrcardwell
Comment options

Answer selected by jrcardwell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants