Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
Description
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.
Attachments
Issue Links
- is related to
-
SERVER-26029 $graphLookup should provide "path" information
-
- Backlog
-