GraphiQL


query GetCategoryTree {
  instances {
    entities(id: "ff0ac91d-3534-4987-8d5f-7488972cbbc8") {
      ...Category
      ...CategoryTree
    }
  }
}

fragment Category on EntityInstance {
  type {
    name
  }
  id
  properties(names: [ "name", "description" ]) {
    name
    value
  }
}

fragment CategoryTree on EntityInstance {
  outbound(type: { namespace: "taxonomy" name: "has_subcategory" }) {
    inbound {
      ...Category
      outbound(type: { namespace: "taxonomy" name: "has_subcategory" }) {
        inbound {
          ...Category
          outbound(type: { namespace: "taxonomy" name: "has_subcategory" }) {
            inbound {
              ...Category
              outbound(type: { namespace: "taxonomy" name: "has_subcategory" }) {
                inbound {
                  ...Category
                  outbound(type: { namespace: "taxonomy" name: "has_subcategory" }) {
                    inbound {
                      ...Category
                      outbound(type: { namespace: "taxonomy" name: "has_subcategory" }) {
                        inbound {
                          ...Category
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}