updateOne()正在更新与筛选器不匹配的文档...数据库中采样数据。测试:
[ {name: "Fred", age:30}, {name: "Barney", age:25} ]
我在上面运行了以下代码:
data = {name: "Fred", age: 40} db.test.updateOne({x:"x"}, {$set:data})
结果:
[ {name: "Fred", age:40}, {name: "Barney", age:25} ]
???
ars1skjm1#
像这样改变第一个月
1条答案
按热度按时间ars1skjm1#
像这样改变
第一个月