修改操作

// 更新操作 更新一个
// User.updateOne({
//     name: '李四'
// }, { name: '李狗蛋', age: 98 }).then(result => console.log(result)) 
// 更新 所有
// User.updateMany({}, { age: 88 }).then(result => console.log(result))
原文地址:https://www.cnblogs.com/ericblog1992/p/13088534.html