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

graphLookup to include 'endWith' and recursive lookup to stop

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Aggregation Framework
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: