André Brito Fonseca
03/26/2022, 11:48 AMid
(@id @default(uuid())
) and a code (an integer, unique).
If I invoke findUnique
and the where
references only the id, I get a message that is similar to this thread: https://stackoverflow.com/questions/65998680/prisma-findunique-where-takes-only-one-unique-argumentMaciek K
03/26/2022, 5:09 PMid
and every code
will be unique for that model. So you can search by either of them, but not both at the same time.