Matt Matheson
12/14/2021, 5:49 PMinclude
? Imagining I have users with posts:
const posts = await prisma.post.findMany({
where: {
userId,
}
});
will return 0 whether a user with the given id exists. I'd like to differentiate between "no posts for this user" and "this user doesn't exist".