Mongoose run function before setting discriminatorKey

前端 未结 0 1513
忘掉有多难
忘掉有多难 2021-01-29 02:10

I have this schema where discriminator is defined by the type field.

const FilledSchema = new mongoose.Schema({
    template:{ type: mongoose.SchemaTypes.ObjectId         


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