Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Removing Pagination from Built-In Collection Endpoint

default discord avatar
notchr2 years ago
3
@204939313119625217

Hey - what does your collection config look like



Also, is the goal to remove it from a GET request response?

  • default discord avatar
    ikimaru13372 years ago

    yes, it is. if I access the GET through the URL, I get all data. if I access it through a fetch request from my frontend, I am only receiving 10 records.



    I found the solution!



    simply add `?limit=100' at the end of my fetch endpoint

  • default discord avatar
    notchr2 years ago

    Ah yes



    Glad you found it!

  • default discord avatar
    ikimaru13372 years ago

    thank you

    @1049775120559898725

    !

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.