mongodb 根据条件更改字段值 db.getCollection('refer_article').find({'journalPublisherId':'proteincell'}).forEach( function(item){ db.getCollection('refer_article').update({"_id":item._id},{$set:{"journalPublisherId": "dbzyxb"}}) } )