-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Write Ops
-
None
-
Major Change
-
ALL
Currently, the semantics of $unset is ambiguous when arrays are involved. For instance, the following returns
{a:[]}start:
{ a : [] }update: { $unset :
{ "a.0" : 1 }}
But the following returns
{a:[null]}start:
{ a : ['abc'] }update: { $unset :
{ "a.0" : 1 }}
We'd like the $unset semantics to be that of setting a position to null, when the target of the unset is an array's element.
- is depended on by
-
SERVER-7174 Implement all update() operators
- Closed
- related to
-
SERVER-4781 replica set initial sync failure when update cannot be applied to a future version of an object received via clone
- Closed