Mutation sub-transactions
Thats what I was considering
However this requires switching everything to an action
Cant do that inside of a mutation
Would be great for mutations to have both a happy and an error path handler for alternative mutations when the intended fails
1 Reply
You can; the mutation
ctx
also provides access to runMutation
: https://docs.convex.dev/api/interfaces/server.GenericMutationCtx#runmutationInterface: GenericMutationCtx<DataModel> | Convex Developer Hub
server.GenericMutationCtx