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

Add $lookup.excludeLocalField to exclude local field from output

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Aggregation Framework
    • Labels:

      Description

      { $lookup: {
             from: <collection to join>,
             localField: <field from the input documents>,
             excludeLocalField: <boolean>
             foreignField: <field from the documents of the "from" collection>,
             as: <output array field>
      } }
      

      If excludeLocalField = true then localField is removed from output
      IMHO: excludeLocalField must be default to true (excludedd by default)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-query Backlog - Query Team
              Reporter:
              joseaio Jose Antonio Illescas Olmo
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated: