Manish
06/01/2021, 12:02 PMconst usersWithCount = await prisma.user.findMany({
select: {
_count: {
select: { posts: true },
},
},
})
Is it possible to get the count of posts based on a filter such as posts where status:'published'?
Thanks!Ryan
06/01/2021, 12:12 PMManish
06/01/2021, 12:14 PM