When does _count exist in prisma?
What's the difference between post and category that the category has a _count field available?
here's the relevant parts in the schema

3 Replies
category has a one to many with post
what you're actually doing here is
_count: { post: true }
Prisma
Aggregation, grouping, and summarizing (Concepts)
Use Prisma Client to aggregate, group by, count, and select distinct.
Thank you.