Does anyone know if it's possible to specify which...
# orm-help
k
Does anyone know if it's possible to specify which relations to count in an
_count
? Something like
_count: { posts: { where: { published: true }}}
t
I’m interested in this answer as well. In the meantime, I’ve been using their
count
function to do this.
Copy code
prisma.posts.count({
      where: {
        published: true,
        ...etc
      }
    });
n
Hey Kelly and Tyler 👋, Unfortunately, this is not possible yet. Here is the feature request describing the same. If you could leave a 👍 on the feature request it would help our product and engineering team plan and prioritise it.