- Strapi Version:
- Operating System:
- Node Version:
- NPM Version:
- Yarn Version:
I’m using the REST API for now, and I have a collection of media, each one having a category.
I would like for strapi to return a limited list of medias so I can paginate them.
But I would also like to display how many total medias there are for each category.
Am I forced to use two queries ?
Since i get only a fraction of the medias I can’t filter them by category to get the totals. I also can’t use count since it only gives me a total and I won’t have a clue which media corresponds to what category.
Thanks for the help