-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
It would be nice to have the ability in one statement to be able to cap the elements in an array to keep a fixed stack size.
e.g. If I want to store the latest 10 users who have visited a blog post in an array within a document. Currently this requires two operations
Redis supports things like this with Lists and lpush, ltrim, etc..., it would be handy in mongodb as well.