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

Add $lookup.excludeLocalField to exclude local field from output

    XMLWordPrintable

Details

    • New Feature
    • Status: Backlog
    • Minor - P4
    • Resolution: Unresolved
    • None
    • None
    • Aggregation Framework

    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

              backlog-query-optimization Backlog - Query Optimization
              joseaio Jose Antonio Illescas Olmo
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: