When manually using new model(), Is it possible to modify a document before save()ing it, using mongoose update operators?

前端 未结 0 1187
忘掉有多难
忘掉有多难 2021-02-09 11:23

With mongoose, they very often give documentation in which they create a new document on a model on the spot, and then modify a field and save it, like so:

const          


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