-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remove references to population and population (combined) #752
Copy link
Copy link
Closed
Labels
pr: fixUsed on the docs repo for anything that is not "new" or "updated" content: chore, typos, fixes, etc.Used on the docs repo for anything that is not "new" or "updated" content: chore, typos, fixes, etc.source: Dev DocsPRs/issues targeting the Developer DocsPRs/issues targeting the Developer Docsstatus: confirmedConfirmed by a Strapi Team member or multiple community membersConfirmed by a Strapi Team member or multiple community memberstarget: v4Documentation PRs/issues targeting content from docs.strapi.io (main branch).Documentation PRs/issues targeting content from docs.strapi.io (main branch).
Description
Ninja Edit by @derrickmehaffy
We need to remove all information about being able to paginate relationships, as it's not possible and will not be implemented per Alex in #752 (comment)
Can not implement Combining Population With Pagination
Following this document, to implement pagination in population, it should work, for example:
const qs = require('qs');
const query = qs.stringify({
fields: ['title', 'slug'],
populate: {
comments: {
fields: ['name'],
pagination: {
start: 50,
limit: 200
}
},
},
}, {
encodeValuesOnly: true,
});
await request(`/api/articles?${query}`);
But it not work as expected
Steps to reproduce the behavior
- As described above, implement pagination in API call
- API response not respect to pagination in population
Expected behavior
If the document is correct, pagination in population should work.
If this is not designed to be work in this way, the document should be modified to reflect what had been designed.
System
- Node.js version: v14
- Strapi version: v4.0.7"
- Database: pg
- Operating system: windows
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
pr: fixUsed on the docs repo for anything that is not "new" or "updated" content: chore, typos, fixes, etc.Used on the docs repo for anything that is not "new" or "updated" content: chore, typos, fixes, etc.source: Dev DocsPRs/issues targeting the Developer DocsPRs/issues targeting the Developer Docsstatus: confirmedConfirmed by a Strapi Team member or multiple community membersConfirmed by a Strapi Team member or multiple community memberstarget: v4Documentation PRs/issues targeting content from docs.strapi.io (main branch).Documentation PRs/issues targeting content from docs.strapi.io (main branch).