-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.3.2
-
Component/s: None
-
None
> db.test.save( { _id : 1 , a : [
{ x : 1 , y : 2 },
{ x : 10 , y : 11 } ] })
> db.test.find()
{ "_id" : 1, "a" : [
,
{ "x" : 10, "y" : 11 } ] }
> db.test.update( {}, { $unset:
} )
> db.test.find()
Expected { "_id" : 1, "a" : [
{ "x" : 10, "y" : 11 }] }
$unset on the 1st idx (2nd element) works fine though.