I am fetching a list of resources. Each resource has a “has many” relationship and I need to display its count. However, I don’t want to include all of the IDs of the related resources because it is too much information.
For example, let’s say I am fetching a list of blog posts, and need to display the count of comments. I don’t want to fetch hundreds of comment records just to display the count.
What is the best way to represent this data?