[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: |
|
||||||||
| 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:
|
| 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, |
| Comment by Kyle Suarez [ 14/Nov/17 ] |
|
Is this a duplicate of SERVER-26916? |