I have a site with a bunch of nested data that I need to display on a single page. To do this I need to call many "pages" from one page. But trying using the REST API and Node client I can only get a max of 10 array results back.
When querying "Inklud" shown in the image bellow I expect allot more than 10 results.
Get all ancestors with Umbraco Heartcore
I have a site with a bunch of nested data that I need to display on a single page. To do this I need to call many "pages" from one page. But trying using the REST API and Node client I can only get a max of 10 array results back. When querying "Inklud" shown in the image bellow I expect allot more than 10 results.
My query over REST is like this
With Node client
Does anyone know how I can get all my results? I don't mind sharing login with Umbraco employees, but appreciate answers from everyone :)
Hi Andreas
I recommend reaching out to the support team as it looks like something that would require backoffice access to investigate properly.
You should in fact get all of the screenshotted nodes returned in the API response.
It's a good idea to check if an API client like Postman gets the same result.
That way we can exclude this from being a mysterious issue with the SDK and rather one on your project or even a general one.
Wait a sec. Just had a look at the docs and it looks like we have pagination for descendants. See here https://our.umbraco.com/Documentation/Umbraco-Heartcore/API-Documentation/Content-Delivery/content/#get-descendants
Try with the params and see if you get more than 10 :)
This worked, fantastic! I just need to get better at reading the docs 😅
Awesome to hear that! Enjoy the docs :)
is working on a reply...