Closed
Description
Christoph Strobl opened DATAMONGO-832 and commented
Since mongodb 2.4 the $push
operator can be used along with $slice
{ $push: { quizzes: { $slice: -5 } } }
Reference URL: http://docs.mongodb.org/manual/reference/operator/update/push/
Attachments:
- DATAMONGO_832.patch (11.58 kB)
Issue Links:
- DATAMONGO-812 $pushAll is deprecated since mongo 2.4 move to $push $each
Referenced from: pull request #374
7 votes, 7 watchers