Recursive query with dgraph

https://docs.dgraph.io/query-language/#recurse-query

The @recurse query docs say you can only specify one-level of predicates. At every node hop the query will traverse through all the listed predicates.

A single-level of predicates means the query should be shaped like this:

{
  all_subsidiaries(func: eq(entity_id, "0FPWZZ-E")) @recurse(depth:5, loop:false) {
    ~isSubsidiaryOfFilermstPriorityNoOverlap
    entity_id
  }
}