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

Option for $addToSet to work on array members

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.6.3
    • Aggregation Framework
    • None

    Description

      It would be very usefull if $addToSet in $group had an option to add members of an array to the set similar to the $each modifier to the $addToSet update modifier.

      Something like $group: {..., mySet: {$addToSet: {$each: "$myArrar"}}}

      Attachments

        Activity

          People

            Unassigned Unassigned
            ms@addwish.com Martin Skøtt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: