Error Handling in Mutation
Learn how to handle errors in mutation.
We'll cover the following...
Handling mutation errors
We need to deal with errors that might occur in the execution of our mutations. We’ll cover two major strategies we can use to report errors to users. While we can’t always make them happy, we can at least let them know what went wrong.
Before we dig into error handling, we need to set up a good example. Let’s add a constraint in ...