Skip to content

Request limit of a relation is fixed to 20 in Strapi Admin #9137

@RaphaelWski

Description

@RaphaelWski

Bug report

Describe the bug

I can't display more than 20 items of a relation in Strapi Admin.
The request contains _limit=20 and I want to know how to remove it.

Steps to reproduce the behavior

  1. Create a Collection Type Agences
  2. Add more than 20 agences
  3. Create a component with that collection inside
  4. Create another Collection Type with a Dynamic Zone containing that component
  5. Create an entry and try to add all available agences
  6. See the dropdown is limited to 20

Expected behavior

Display all the data in the relation's dropdown (more than 20).

System

  • Strapi Version: 3.4.2
  • Operating System: Debian
  • Database: MySQL
  • Node Version: 12.18.2
  • NPM Version: 6.14.6

Additional context

Hi,

I have trouble to display more than 20 items of a relation in Strapi Admin.
We were on version 3.2.5 while we discovered what I will explain, and we’ve migrate to the latest version but it doesn’t change.
I guess there is something I missed so i need help to fix it.

So when I move to the content manager and add some Agences, I’m limited to 20 while I have more agences stored in database
This is because the request limit is fixed to 20

http://localhost:1337/content-manager/relations/application::page.page/agences?_limit=20&_start=0&_component=pages.carte-interactive

link

I want to know how to change the limit value or remove it from the request.

Thanks for your help

Link to my Strapi Forum post

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugseverity: lowIf the issue only affects a very niche base of users and an easily implemented workaround can solvesource: core:content-managerSource is core/content-manager packagestatus: confirmedConfirmed by a Strapi Team member or multiple community members

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions