Is one way better than the second to update a document in Mongoose?

前端 未结 0 458
执笔经年
执笔经年 2020-12-22 20:25

Let\'s say I want to update some values from a Pet document (Here the template:

const petSchema = new mongoose.Schema({
    \'type\': String,
    \'name\': St         


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