How to populate a ref field with object from an array of other schema?

前端 未结 0 1039
礼貌的吻别
礼貌的吻别 2020-11-30 18:35
const userSchema = mongoose.Schema(
  {
    firstName: {
      type: String,
      required: true,
    },
    lastName: {
      type: String,
      required: true,
          


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