[SERVER-31958] graphLookup to include 'endWith' and recursive lookup to stop Created: 14/Nov/17  Updated: 14/Nov/17  Resolved: 14/Nov/17

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Sravan Battala Assignee: Mark Agarunov
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-26916 $graphLookup should have option to st... Backlog
Participants:

 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


 Comments   
Comment by Mark Agarunov [ 14/Nov/17 ]

Hello sravan.battala,

Thank you for the report. Looking over the behavior you've described, I believe this is a similar request to SERVER-26916 so I have closed this ticket as a duplicate. Please follow SERVER-26916 for updates on this issue.

Thanks,
Mark

Comment by Kyle Suarez [ 14/Nov/17 ]

Is this a duplicate of SERVER-26916?

Generated at Thu Feb 08 04:28:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.