Just faced something similar in my NextJS application just now. I checked the prisma doc as well, and found the .findMany
query being used when I actually need to fetch one entity. I had to change the .findUnique
to .findFirst
in my own case.
This is to provide additional guide.