我有 MongoDB 2.2.2 和这个集合:
> db.my_collection.find({_id: ObjectId('51b0f9b74cfe6e668c4fd8f4')}).pretty() { "_id" : ObjectId("51b0f9b74cfe6e668c4fd8f4"), "campaigns" : [ { "cs_strategy_name" : "HighestPosition", "name" : "DefaultCampaign", "campaign_id" : 0, "_syskey" : "default", "en_send_warn" : "Yes", "minus_keywords" : [ ], "login" : "test", "fio" : "test test" } ], "domain" : "defsite.ru", "login" : "test", "name" : "test", "password" : "", "site_id" : 2, "status" : "new", "surname" : "test"
你能帮我找到一个合适的更新命令吗:db.my_collection.campaigns.minus_keywords
?
它是另一个数组中的一个数组。
太谢谢了!