allow localField and foreignField with more expressive $lookup pipeline

XMLWordPrintableJSON

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

      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
            Reporter:
            Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: