mongoose update multi rows

model.collection.update({"id":XX},{$set:{"money":1}},{"multi":true,"upsert":false},callback);
posted @ 2012-11-20 10:41  易木  阅读(616)  评论(0编辑  收藏  举报