与returnNewDocument:true一起使用的findOneAndUpdate返回原始文档MongoDB

与returnNewDocument:true一起使用的findOneAndUpdate返回原始文档MongoDB,第1张

与returnNewDocument:true一起使用的findOneAndUpdate返回原始文档MongoDB

Node.js 驱动程序文档中没有提及

returnNewdocument
选项
findoneAndUpdate()
(这是具有相同名称的MongoDB
Shell命令
的选项)。

相反,它提到了一个名为的选项

returnOriginal
,默认为
true
。尝试使用该选项,将其设置
false
为返回 更新的
文档而不是原始文档。



欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5172183.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-18
下一篇2022-11-18

发表评论

登录后才能评论

评论列表(0条)

    保存