Chaimba
DTDrizzle Team
•Created by Chaimba on 2/6/2024 in #help
Help with a request
Thank you so much. I'd like to take this opportunity to ask you another question. return prisma.user.update({
where: { email: email },
data: {
favorite: {
set: user.favorite.filter((anime: string) => anime !== name),
},
},
}) and return prisma.user.update({
where: { email: email },
data: {
favorite: {
push: name,
},
},
})
4 replies