-
Type: New Feature
-
Resolution: Won't Do
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Write Ops
-
None
-
Query
$unshift - like $push, but to the start of the array, and with support for the $each construct like $addToSet.
$pushToSet - like $push in that the supplied item(s) will end up at the end of the set in the supplied order - maintaining set semantics by removing pre-existing matching elements. Should support the $each construct.
$unshiftToSet - just like $pushToSet, but adds items at the start of the array.
The next two are more "nice to have's".
$push - add support for the $each construct - $pushAll could then be deprecated
$shift - just like $pop with reversed sign, i.e. {$pop:{a:-1}} is the same as {$shift:{a:1}}
- depends on
-
SERVER-6399 Refactor update() code
- Closed
- is depended on by
-
SERVER-2363 $push/$pushAll support for insertion at any position (top/bottom/ordinal)
- Closed
- related to
-
SERVER-9591 Update: $push + $unique
- Closed
-
SERVER-1050 not allowed to $push and $pop to same field in same update
- Closed