150道前端高频算法题讲解视频
能有一个
先查询
t.find()
{ "_id" : ObjectId("4b977152c9ccb74"), "title" : "ABC", "comments" : [ { "by" : "joe", "votes" : 3 }, { "by" : "jane", "votes" : 7 } ] }
更新
t.update( {'comments.by':'joe'}, {$inc:{'comments.$.votes':1}}, false, true )再查询
t.find() { "_id" : ObjectId("4bb74"), "title" : "ABC", "comments" : [ { "by" : "j

