Prisma `delete` a row with composite keys
I’m trying to
delete
a single row in Prisma using composite keys x
, y
. Is it possible to write a query like prisma.table.delete({ where: { x, y })
or do you have to use deleteMany
, which presumably doesn’t have a limit 1
?1 Reply
Yes or the relation need to be unique I think I ran in the issue and used delete many i’ll look into uniques tomorrow.