hi all, I've run `updateMany()` got this error `o...
# orm-help
j
hi all, I've run
updateMany()
got this error
on prisma.updateManyTransaction. Provided List<Json>, expected TransactionUpdateManyMutationInput or TransactionUncheckedUpdateManyInput:
my code is
Copy code
const updatedTxs = await prisma.transaction.updateMany({
        where: {
          id: {
            in: TxIds,
          },
        },
        data: {
          status: 'SUCCESS'
        },
      });
what wrong with me?
👀 1
✅ 1
n
Hey John 👋 What are you passing in
TxIds
variable? And what database and prisma version are you using?
r
If I had to guess, maybe TxIds is an array of objects?
j
thank you response,
TxIds
has form
['id1', 'id2']
but it has some bad data, btw it works now.