|
|
|
|
|
by dankent
3231 days ago
|
|
If I want to get all levels of an arbitrarily nested tree, I just query for all of the objects that are in the tree in a flat array and then reconstruct the tree on the client side using the parent/child Ids. This is similar to what I would have to do server side if I were using SQL to get the data and then processing it to return a tree in JSON. If I know how deep the tree will be (and it is only two or three levels) I query it directly with graphql |
|