Use array for filtering Prisma nextjs

Viewed 46

having an array with unique names, how can i update the elemets of those names using prisma(in nextjs). I mean something Like:

const arr=['Joe', 'Mark'];
const update=await prisma.user.updateMany({
    where: {
        name: //What should i put to update both Joe and Mark?
    },
    data: {
        notifications: {push: "Hello"}
    }
});

I'm using PSQL and i don't know if it matters.

1 Answers
Related