I am trying to fetch all the children of a given node. I read through the documentation and it seems like
recurse would be something that I want to use but after much hit and trial I am not able to figure it out.
In particular, I want to get all child nodes (via isSubsidiary edge) of a node such that enitity_id=“1”.
I have the entity_id and isSubsidiary (with reverse edge) predicates in my dgraph instance as follows:
(Please, don’t mind my ascii art skills.)
And I am expecting my result set to contain the entity_ids [1,2,3,4,5,6] as they all belong to the same tree (1’s children’s tree). Any help would be greatly appreciated.