Skip to content

Remove references to population and population (combined) #752

@wemod123

Description

@wemod123

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

  1. As described above, implement pagination in API call
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    pr: fixUsed on the docs repo for anything that is not "new" or "updated" content: chore, typos, fixes, etc.source: Dev DocsPRs/issues targeting the Developer Docsstatus: confirmedConfirmed by a Strapi Team member or multiple community memberstarget: v4Documentation PRs/issues targeting content from docs.strapi.io (main branch).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions