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

              Assignee:
              backlog-server-query Backlog - Query Team
              Reporter:
              dancerjohn John Butler
              Participants:
              Votes:
              13 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated: