-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Fully Compatible
-
ALL
Can we get the depth of the evaluation as well along with output documents?
db.employees.aggregate( [ { $graphLookup: { from: "employees", startWith: "$reportsTo", connectFromField: "reportsTo", connectToField: "name", as: "reportingHierarchy" } } ] )
"reportingHierarchy" => should provide output like {depth: 1, documents: [{}, {}]}
It will help us to reduce no. of queries in order to find depth of children.
- is related to
-
SERVER-26029 $graphLookup should provide "path" information
- Backlog