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

Allow for $pushall / $push with $each to allow pushing all elements of array in $group

    • Query Optimization
    • Fully Compatible

      I would like to be able to push all elements of an array field into a new field. So, in a $group, I could do a $push or $addToSet of a field that is an array field and the resulting field would be an array of the elements instead of an array of arrays.

      Seems like the $each operator in update is the solution if added to aggregations.

            Votes:
            21 Vote for this issue
            Watchers:
            34 Start watching this issue

              Created:
              Updated:
              Resolved: