Skip to content

Add support for $slice in Update.push [DATAMONGO-832] #1760

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Issue Links:

  • DATAMONGO-812 $pushAll is deprecated since mongo 2.4 move to $push $each

Referenced from: pull request #374

7 votes, 7 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core supportin: mappingMapping and conversion infrastructuretype: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions