Details
-
Improvement
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
Description
Just the way we have "startWith", it adds more power to graphLookup to have "endWith".
Expected behaviour should be, to check the value provided in "endWith" with "connectsToField" and stop recursive lookup and record the depth in "depthField".
The depth at which the match was found could be much lesser than "maxDepth".
I find this would be a handy feature to check the relation between 2 known points. For example:
- How person 'A' is related person 'B' in the organisational hierarchy
- Find the airline routes between 2 ports with specified stopovers
Attachments
Issue Links
- duplicates
-
SERVER-26916 $graphLookup should have option to stop recursing when certain match condition is satisfied
-
- Backlog
-