any ideas what the latest transaction syntax is su...
# orm-help
s
any ideas what the latest transaction syntax is supposed to be? looking at the docs there's
Copy code
prisma.$transaction(async (tx) => {
but this throws a type error now
Argument of type '(tx: any) => void' is not assignable to parameter of type 'PrismaPromise<any>[]'
what even is a PrismaPromise? and if it's an array, how am I supposed to benefit from the result of one of those operations for incrementing purposes?
1
n
Are you planning to use interactiveTransaction preview feature? Edit: This is resolved 🙌 https://prisma.slack.com/archives/CA491RJH0/p1666195651538819