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

allow localField and foreignField with more expressive $lookup pipeline

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Query 2020-12-14, Query 2020-12-28, Query 2021-01-11
    • Case:

      Description

      This proposes closing SERVER-29376 and instead allowing combination of both, localField and foreignField and expressive pipeline.

      {$lookup:{from:"other",
                      localField:"l",
                      foreignField:"f",
                      as:"fromOther"
                      [, pipeline: [ ... ] ]  /* optionally add a pipeline to apply *after* equality join */
      

      This allows preserving the non-expressive lookup equality semantics with additional flexibility of using anything along with it like $sort and $limit etc.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hana.pearlman Hana Pearlman
              Reporter:
              asya Asya Kamsky
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: