mongo update using $set with $addToSet together

后端 未结 0 1196
孤街浪徒
孤街浪徒 2021-02-02 06:20

I have this query:

this.getCollection().update({ "_id": new mongo.ObjectID(rule._id) },
            {   $set:{ "priority": rule.priority },
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题