Jon Higger (He / Him)
Explore posts from serversPPrisma
•Created by Jon Higger (He / Him) on 11/12/2024 in #help-and-questions
Do transactions work when you nest them?
Hello, I'm trying to figure out if transactions work correctly when you nest them.
In my example I've got a couple of pretty complex business-logic-required queries, and each might have their own transactions within them:
If
deleteEntityAndReorderAllChildEntitiesForParent
fails from inside the transaction within reorderAllChildEntities
function, will BOTH transactions be rolled back correctly, or is this bad practice?12 replies