Query relational data(N to N)

System Information
  • Strapi Version: 4.1.1
  • Operating System: Ubuntu
  • Database: postgres
  • Node Version: 16.14.0
  • NPM Version: 8.3.1
  • Yarn Version:

I have two collections, Articles and categories(N to N relationship), if I query http://localhost/api/categories?populate=articles&[filters][id][$eq]=1, it returns all articles under category id =1, which is good, but the meta data looks confusing, cuz I have 17 records under this category, but the

field: total of meta data returned 1, does my query missed sth? or need more specific ?

“meta”: {
“pagination”: {
“page”: 1,
“pageSize”: 25,
“pageCount”: 1,
“total”: 1
}
}