This version of the documentation is archived and no longer supported.

$push (aggregation)


Returns an array of all the values found in the selected field among the documents in that group. A value may appear more than once in the result set if more than one field in the grouped documents has that value.