Use deleteOne for remove a subdocument with Mongoose?

后端 未结 0 801
灰色年华
灰色年华 2020-12-23 00:44

Model Schema

const fooSchema = new Schema({
    _id: {type: mongoose.Types.ObjectId},
    propA: String,
    propB: String,
})

const barSchema = new Schema         


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