Home > @tridion-sites/extensions > MutationOptions > onError
This function will fire if the mutation encounters an error and will be passed the error.
Signature:
onError?: (error: TError, variables: TVariables) => Promise<void> | void;