Why can't I use a `where` clause inside a `_count`...
# orm-help
g
Why can't I use a
where
clause inside a
_count
inclusion like this?
Copy code
include: {
            _count: {
              select: {
                workers: true,
                tasks: {
                  where: {
                    isCompleted: false,
                  }
                },
              },
            },
}
t
Yea would love to have this too
If you add a prisma github issue - I will upvote it!
r
@glekner @Tharshan 👋 It would be great if you could add a 👍 to this request so that we can know the priority: https://github.com/prisma/prisma/issues/8122