[fcoury@imac 17:47]:$ mongo
MongoDB shell version: 0.9.6
url: test
connecting to: test
type "help" for help
> db.sample.remove();
> db.sample.save({"_id" : "db1940364a68bbca000000a1" , "test" : [
]})
> db.sample.update(
, {$set: {"test.0.new_attribute": "new_value"}})
> db.sample.find();
{"_id" : "db1940364a68bbca000000a1" , "test" : [
]}
- is depended on by
-
SERVER-333 mixing $inc and $push
- Closed