Hi, why can I not use ```await prisma.account ...
# orm-help
i
Hi, why can I not use
Copy code
await prisma.account
      .findFirst({
        where: {
          id: user.id,
          authorization: user.authorization,
        },
      });
but I can use
Copy code
await prisma.account
      .findMany({
        where: {
          id: user.id,
          authorization: user.authorization,
        },
      });
If I use the first example I get an error:
Copy code
Argument where of type AccountWhereUniqueInput needs exactly one argument, but you provided id and authorization. Please choose one. Available args:
Nevermind, the second example was working yesterday night but now both give the error, any help?
r
@Indxgo 👋 The queries seem fine. Try running
prisma generate
and check again.