Get all records from collection

Hi! I’m trying to get all the records from one collection. What’s your best approach?

Thanks in advance

It’s all in the docs:

Sorry maybe I didn’t explain it well. I mean without limits. Thanks

I have sorted that by creating custom APIs in collection folders. That will help you get the data the way you wanted.

This may not be exactly what you’re looking for, but I changed my api.js in the config folder to increase the maximum pageSize to a very high number (i.e. 1000), which you could also set as the defaultLimit if you wanted.

module.exports = {
  rest: {
    defaultLimit: 25,
    maxLimit: 1000,
    withCount: true,
  },
};