John Smeeth
06/23/2022, 4:12 AMupdateMany() got this error on prisma.updateManyTransaction. Provided List<Json>, expected TransactionUpdateManyMutationInput or TransactionUncheckedUpdateManyInput:
my code is
const updatedTxs = await prisma.transaction.updateMany({
where: {
id: {
in: TxIds,
},
},
data: {
status: 'SUCCESS'
},
});
what wrong with me?Nurul
06/23/2022, 2:59 PMTxIds variable?
And what database and prisma version are you using?Richard Kaufman-López
06/23/2022, 4:55 PMJohn Smeeth
06/24/2022, 1:58 AMTxIds has form ['id1', 'id2'] but it has some bad data, btw it works now.