Mongoose populate sub-sub document

后端 未结 9 1950
深忆病人
深忆病人 2021-01-30 03:00

I have this setup in my MongoDB

Items:

title: String
comments: [] // of objectId\'s

Comments:

user: ObjectId()
item: Ob         


        
9条回答
  •  北恋
    北恋 (楼主)
    2021-01-30 03:23

    Check the screenshot below. This thing works like charm!!!

提交回复
热议问题