Handling Multiple Mutations In An Action
I am using clerk with my Convex project. When a user signs up, i listen to the event using webhook and insert the user into the database.
However, i also need to set some defaults records and fields for the user which will be added. I am planning to use actions to run multiple mutations that inserts the user into the db and also another mutation that sets default values for the field. I am wondering how the error handling works in this case.
Assuming the user is added and for some reason the fields are not set, how will i be able to handle such situations efficiently.
I am also open to better implementations on how to properly implement this.
Thanks in advance.
