Is there a reason why the `where` key is always ma...
# prisma-client
e
Is there a reason why the
where
key is always mandatory on mutating many link types? I moved from 1.19 to 1.24, (it didn't work well before), and now I have to mention a
where
. What if I want all links to get updated? Like in:
Copy code
prisma.updateLoan({
  where: { id: args.id },
  data: {
    items: {
      // Here update and updateMany require a where
    }
  }
})
So it's either I call
updateLoan
and I have to mention a
where
on
loan.items
or I call
updateManyLoans
and I can't even call
items
inside `data`🤔
s
That seems like a bug. Would you mind creating an issue for this?
b
Maybe to avoid all links getting deleted / updated? I have seen many db engines that don't allow a DELELTE * FROM table; Or they require setting a flag before you can do it.