Use deleteOne for remove a subdocument with Mongoose?

后端 未结 0 1977
北海茫月
北海茫月 2020-12-23 00:13

Model Schema

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

const barSchema = new Schema         


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