且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Meteor / Mongo:查找和更新集合中的某些元素

更新时间:2023-02-17 18:20:16

当然我想知道如何在发布之后立即执行此操作,当然这是在Meteor文档中建议的!

Of course I figure out how to do this right after posting, and of course it's suggested in the Meteor documentation!

当然,它是一个简单的解决方案:

And, of course, it's a simple solution:

collection.update({A: true, B: true}, {$set: {C:false}});