-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Minor - P4
-
None
-
Affects Version/s: 1.4.0
-
Component/s: Write Ops
-
None
-
Query
Was just talking about #991 with Dwight and noticed that you can't workaround by doing $push / $pop to the same field on the same update, for example:
> db.test.drop();
false
> db.test.save(
);
> db.test.update( {}, { $push:
, $pop:
{ mylist: -1 } } );
Field name duplication not allowed with modifiers
Would be nice if this was permitted.
- depends on
-
SERVER-27089 Extend the update subsystem to support more expressive updates to array fields
- Closed
- is related to
-
SERVER-2362 Add new Deque/Set operation modifiers
- Closed
-
SERVER-2643 Allow Field Name Duplication with Modifiers
- Closed
-
SERVER-1947 can't push and set in one operation
- Closed
- related to
-
SERVER-991 $push with $slice + $sort
- Closed
-
SERVER-6566 Support conditional updates: $updates
- Closed