Pagination

    When retrieving records, you'll get paginated results. By default you'll get 20 records per page. The page limit can be customised up to 500 records per call.

    When using our clients you can also fetch all the pages with a single function as we'll manage pagination for you in the clients.

    Here's an example of getting one page or all the content with our JS client:

    // getting one page
    client.items.all({
    'filter[type]': 'article',
    'page[offset]': 2,
    'page[limit]': 100,
    })
    .then((records) => console.log(records));
    // getting all the content
    client.items.all({ 'filter[type]': 'article' }, { allPages: true })
    .then((records) => console.log(records));