Add $lookup.excludeLocalField to exclude local field from output

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      { $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)

              Assignee:
              [DO NOT USE] Backlog - Query Optimization
              Reporter:
              Jose Antonio Illescas Olmo
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: