mongoose Populate does not work on field having array of ObjectIds

前端 未结 0 859
面向向阳花
面向向阳花 2020-11-30 22:16

at frist shema was @Prop({ type: { Types.ObjectId, ref: Tag.name }}) i havn\'t recived data from database after changing to @Prop({ type: [{ type: Types.

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