Can't get Mongoose.js Subdocument Array to populate

前端 未结 5 377
孤独总比滥情好
孤独总比滥情好 2021-02-04 06:23

I\'m using mongoose.js on a node.js server connecting to mongodb and I have a mongoose model like the following

SubSchema = new Schema({
    _member:     {type:          


        
5条回答
  •  抹茶落季
    2021-02-04 06:57

    Follow-up on @JohnnyHK's post, you can specify the Model to use in populate() for now:

    https://github.com/LearnBoost/mongoose/issues/1377#issuecomment-15920370

提交回复
热议问题