The examples of sequential operations show the prisma operations being generated inline to the array.
If I were to instead create the queries beforehand:
const foo = prisma.foos.update(...);
const bar = prisma.bars.update(...);
await prisma.$transaction([foo, bar]);
I’d expect that the foo and bar queries will have already been executing outside of the transaction, and prisma.$transaction
is more or less empty from the perspective of the database transaction.
Is that accurate? Or is there some mechanism here that I’m not familiar with?