Populate a nested schema with Model having nested schema in mongoose

前端 未结 0 2001
暗喜
暗喜 2021-01-05 09:52

User Model with categorySchema nested into userSchema:

const categorySchema = new mongoose.Schema({
  categoryName: {
    type: String,
    maxlength: [40, \'         


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