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

Option for $addToSet to work on array members

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.6.3
    • Component/s: Aggregation Framework
    • Labels:
      None

      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"}}}

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

              Created:
              Updated:
              Resolved: