Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31958

graphLookup to include 'endWith' and recursive lookup to stop

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None

      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

            Assignee:
            mark.agarunov Mark Agarunov
            Reporter:
            sravan.battala Sravan Battala
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: