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

    XMLWordPrintableJSON

Details

    • Query Optimization

    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

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            dancerjohn John Butler
            Votes:
            20 Vote for this issue
            Watchers:
            29 Start watching this issue

            Dates

              Created:
              Updated: