Avi Block
04/28/2022, 7:31 AMconst usersWithCount = await prisma.user.findMany({
select: {
_count: {
select: { posts: true },
},
},
})
this code example from the docs gets the post count for each user
how would get, lets say, the count of published posts?