Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
2 replies
meow

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?
Was this page helpful?