Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想更新与用户关联的所有记录以与另一个用户关联。
所以我尝试以下方法:
db.portfolio.find({ user: 'ryan'}, { $set: { user: 'jeff' }}, {multi: true});
但是我收到此错误:
error: { "$err" : "Unsupported projection option: user", "code" : 13097 }
这到底是什么意思,如果这不是正确的,为什么要做我想做的事,那是什么?非常感谢。
正如@Sammaye 所说;应该update不是find。
update
find