juls07
09/12/2022, 5:28 AMAND
in a delete case?
trying to do something like
await prisma.like.delete({
where: {
AND: [
{
postId: postId
},
{
userId: ctx.user.userId
}
]
}
})
Harshit
09/12/2022, 9:20 AMawait prisma.like.delete({
where: {
postId: postId,
userId: ctx.user.userId
}
})
Harshit
09/12/2022, 9:20 AMCory Gibbons
09/15/2022, 3:11 PMdelete
(and some others like update
and findUnique
)
related: https://github.com/prisma/prisma/discussions/4185Vladi Stevanovic
juls07
09/15/2022, 8:13 PM