Details
-
Bug
-
Resolution: Done
-
Major - P3
-
1.3.2
-
None
-
None
Description
> 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.