Error With Vercel Deployment with Prisma and PlanetScale
Unanswered
Acorn-plum gall posted this in #help-forum
Acorn-plum gallOP
PrismaClientValidationError:
Invalid `prisma.user.findUnique()` invocation:Argument `where` of type UserWhereUniqueInput needs at least one of `id`, `email`, `username` or `stripeCustomerId` arguments. Available options are marked with ?.2 Replies
I think that should be pretty self explanatory. Can you send the code where you're using
prisma.user.findUnique()?You should use it something like:
prisma.user.findUnique({
where: {
id: 42
}
})