Kelly Copley
02/27/2022, 3:05 PM_count
? Something like _count: { posts: { where: { published: true }}}
Tyler Bell
02/27/2022, 3:26 PMcount
function to do this.
prisma.posts.count({
where: {
published: true,
...etc
}
});
Nurul
02/28/2022, 12:58 PM