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

allow localField and foreignField with more expressive $lookup pipeline

    • Fully Compatible
    • Query 2020-12-14, Query 2020-12-28, Query 2021-01-11

      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.

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

              Created:
              Updated:
              Resolved: