is it possible to filter based on the count of a r...
# orm-help
d
is it possible to filter based on the count of a relation? e.g. find users with >50 followers
Copy code
prisma.user.findMany({ where: { followers: { _count: { gt: 50 } } } });
i feel like i must be missing something obvious
I see this github issue but it was closed because the requested feature was satisfied by
some/none
: https://github.com/prisma/prisma/issues/3821#issuecomment-854640669
r
@Dick Fickling 👋 We don’t support it yet, here’s the related feature request that you can add a 👍 on.