Receiving limited data from fetch request

Feature(s) impacted

Smart Chart with data filled from Smart Fields

Observed behavior

When filling out my chart with data I am only receiving 10 items in the array.

Expected behavior

I am expecting to see 100 items as that is how many is in my database.


  • Project name: HHC
  • Team name: Contic
  • Environment name: Development
  • Agent type & version: …
  • Recent changes made on your end if any: …

Hey @Daniel_Sadler :wave:

In your request, you do not specify the number of records to retrieve, so it will default to the number of records visible in your table view for the same collection (Which I’m guessing is 10 in your case).

You should be able to get the first 100 records by adding ?page[size]=100 in your request, like so:

const response = await this.lianaServerFetch.fetch('/forest/customers?page[size]=100, {});

Let me know if that helps.

Unfortunately this still only returns me 10 items

Could you share with me the payload of the request & response your receive from your HTTP call?

Everything seems to work as expected on my end


Sorry for the misleading information. As I wasn’t able to find a project name HHC, I assumed you were using our new agent.

Using /forest/customers?page[size]=100&page[number]=1 with forest-express-sequelize should give you a better result.

Let me know

That works perfectly, cheers for the help :slight_smile:

1 Like