Dev__
08/08/2021, 7:10 PMtransaction comparable with Promise.all(), if yes, does multiple prisma queries with with Promise.all()?Ryan
08/09/2021, 7:50 AM$transaction will rollback all your queries even if a single one fails (just like database transactions) where as Promise.all will not rollback the completed ones in case a single one fails.
Also $transaction will run the statements one after another where as Promise.all will run in parallel.Dev__
08/09/2021, 11:06 AMtransaction([
query1,
query2(query1.id)
])Ryan
08/09/2021, 11:25 AMRyan
08/09/2021, 11:26 AMid? Can it be performed using nested writes?Halvor
08/09/2021, 8:37 PM