Adrian
03/26/2022, 12:53 PMNurul
03/28/2022, 7:31 AMconst user = await prisma.post.update({
where: { title: 'prisma' },
data: {
tags: {
set: [{ id: 2 }, { id: 3 }, { id: 4 }],
},
},
})
The above example should do what you are trying to achieve, please note that set overrides any existing values, so previous tags would be removed and instead tags with id - 2,3,4 would be set.