>
{"nIndexesWas" : 1 , "msg" : "all indexes deleted for collection" , "ns" : > "businessinsider.test" , "ok" : 1}>> db.test.save( { comments: [
{ name: 'blah', rate_up: 0, rate_down: 0, >> rate_ups: [], rate_downs: [] } ] } );
>> db.test.find();
> {"_id" : ObjectId( "4ac811c90516872d71363660") , "comments" : [
]}
>> db.test.update( {} , { $inc:
, $push:
{ >> 'comments.0.rate_ups': 99 }} );
- depends on
-
SERVER-181 $set with array indexes
- Closed