您可以通过设置使用mongodb $位置运算符multi:true
multi:true
Home.update( {"users.name": "johnk"}, //query, you can also query for email {$set: {"users.$.name": "JohnKirster"}}, {"multi": true} //for multiple documents )