mysql:xdevapi'collection.modify;什么都不做
我正在使用nodejs测试mySQL 8“ xdevapi”,并且我正在尝试在此处修改文档中的字段
是代码:
let vModifyOp=await vCollection.modify('_id = "000062817c620000000000000001"').set('wName','toto');
- 我没有任何错误或异常
- VCollections是“ MySQL XDEV集合”,“ VCollection.getOne”
- 当然可以正常工作,该文档存在
我在做什么错?
I'm testing MySql 8 "XDevApi" with Nodejs, and I'm trying to modify a field in a document
Here is the code :
let vModifyOp=await vCollection.modify('_id = "000062817c620000000000000001"').set('wName','toto');
- I don't have any errors or exceptions
- vCollection is a "MySql xDev collection" , "vCollection.getOne" is working fine
- Of course, the document exist
What Am I doing wrong ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
终于我自己找到了解决方案。我们必须致电vmodifyop.ectute,因此代码将是:
但是“执行”未在有关“ Collection.modify”的官方文档中指定。
Finally I found the solution by myself. We have to call vModifyOp.execute, so the code will be :
But the "execute" is not specified in the official documentation concerning the "collection.modify"