Cannot get error
Unanswered
American black bear posted this in #help-forum
American black bearOP
I am using TRPC to add an entry in my database but if an error occurs, the mutation still "Succeeded". How can I return an error
1 Reply
@American black bear I am using TRPC to add an entry in my database but if an error occurs, the mutation still "Succeeded". How can I return an error
hi, try
throw new Error("Duplicate Entry") instead