Sorry, no results found for "".

Content Delivery API > Hierarchical sorting (Tree-like collections)

Hierarchical sorting (Tree-like collections)

If you have models using hierarchical sorting, you can use the children and parent attributes to find the top-level objects of the model and then navigate in depth:

query {
allCategories(filter: {parent: {exists: false}}) {
name
children {
name
children {
name
children {
name
}
}
}
}
}