I am trying to do mutation and sometimes it fails due to input or other reasons, i can see error in modal that pops up in bottom right corner, but how can i handle it in code?
Hi @feruz111,
What are you looking to do with the error?
If you want to trigger other queries or events on failure, you can add failure event handlers to the query.
If you want to customize an error notification, you can use a show notification event handler, or you can go to the query's Response
tab and customize the error message:
The error message will be stored as a property in the query - queryName.error
or nested in the query's data property so that you can reference it anywhere in your app: