Harry Lee
10/18/2022, 5:01 AM@transactional
in spring)?
I’m using Interactive Transaction feature from prisma but it is quit bothersome when especially repository layer is separated
await prisma.$transaction(async (prisma) => {
// ...
await createUser(prisma, ...)
await createReservation(prisma, ...)
await updateLocation(prisma, ...)
})
Nurul
10/18/2022, 6:47 AM@transactions
decorator as mentioned here: #13004
Is this similar to what you need?