Delivery API and relations
# help-with-umbraco
s
When you get a response from the API, how do I figure out the relations between the documents ? Let's say I have to build a navigation in multiple levels, how do I figure out the children to a specific page ? I can't see the smart of doing a new
:children
request for each page in the initial request.
x
Have the same issue as described in here https://discord.com/channels/869656431308189746/1263856590285443103 there's also my solution at the bottom, but dang it i would like to know how to do this using the delivery api
m
https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api#gets-content-item-s-from-a-query ? using
fetch=children
for
Start-Item={URL Segment or GUid}
and presumably a filter on a
(show|hide)InNav
property?
or you could grab all with a
fetch =descendants
for your root node? (with some intelligent filtering)