Good afternoon! I'm working on a project and am u...
# orm-help
c
Good afternoon! I'm working on a project and am using Prisma 2 as the primary database messenger, and I came across this error that I can't find a solution to. Any advice? 😄
Copy code
PrismaClientValidationError: 
Invalid `prisma.member.findUnique()` invocation:

{
  where: {
?   username?: String,
?   id?: Int,
?   email?: String
  }
}
r
@Caleb Hyatt 👋 Could you share what parameters you passed to
findUnique
which caused this error?
m
@Caleb Hyatt You definitely passed in the wrong parameters for .findUnique() call. You should be passing username, id or email as parameters to satisfy the optional but unique constraints. To help you, we really need to see your schema and the .findUnique() parameters you passed in as requested by @Ryan