Option for $addToSet to work on array members

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.6.3
    • Component/s: Aggregation Framework
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Martin Skøtt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: