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.
更新文档时,我想返回在更新期间修改的字段,如果可能的话,返回以前的值。
最有效的方法是什么?
您可以使用该findAndModify命令来支持该用例。
findAndModify