Hussein
02/20/2022, 1:37 PMNurul
02/22/2022, 7:43 AMconst result = await prisma.user.update({
where: {
id: 2,
},
data: {
posts: {
updateMany: {
where: {
published: false,
},
data: {
likes: 0,
},
},
},
},
})
You can learn more about nested updateMany from this reference