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

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                8 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated: