We use cookies to help our site work and to understand how it is used. By continuing to browse the site you're agreeing to our use of cookies.
Menu

Tree-like collections

If you have tree-like collections you can use the children and parent attributes to find the top-level objects of the collection and then navigate in depth:

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