Why do I get “Update document requires atomic operators” when using upsert?

后端 未结 0 681
栀梦
栀梦 2020-12-09 08:29

I am trying to do the following...

const query = {
    name: token.name
}
const options = {
    upsert: true
}
const result = await collection.updateOne(
             


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