Join the Webstudio community

Updated 7 months ago

How to fetch more than 10 elements in a collection

At a glance

A community member is trying to set a limit greater than 10 for a resource in their Kernex collection, but only 10 rows are being retrieved. Another community member provides the solution, explaining that the $limit parameter can be used to set the number of records to return, with a maximum of 100. The community member thanks the other for the helpful information and notes that they have set %24limit instead of limit.

Useful resources
Hi all,
I don’t find how to set a « limit » more than 10 to the ressource of my collection.
I use Kernex to fetch through a GET request.
Only 10 rows are retrieve.
J
P
3 comments
kernex:

$limit (number, optional): the number of records to return. By default it will return 10 records. The maximum limit is 100.

add limit to the url as a query param and give it a higher number https://www.kernex.io/docs/rest-api#find-resources
Oh ! Thanks a lot @John Siciliano ! « Always read the docs» I will remember that next time 😉
I have set « %24limit » instead of « limit »
Add a reply
Sign up and join the conversation on Discord