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

allow localField and foreignField with more expressive $lookup pipeline

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Aggregation Framework
    • Labels:

      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"
                      [, let: { ... }, 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

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: