對於mongodb 3.2+版本,您還可以使用新方法 updateMany() 一次更新多個文檔,而無需單獨更新 multi 選項。 db.test.updateMany({foo: 'bar'}, {$set: {test: 'success!
確定! 回上一頁