Mongoose avoid overwriting createdAt on findOneAndUpdate overwrite

后端 未结 0 1568
执念已碎
执念已碎 2021-02-05 02:56

When using the following method for upserting a document, twice, the createdAt field gets recalculated, is there an option to avoid that?

model.findO         


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