摘要: 一、模型关联 1.一对多/多对多 在一中关联多中的字段,type为 mongoose.Schema.Types.ObjectId ,并关联关联模型的名称。 1 const Categoryschema = new mongoose.Schema({ 2 name: { type: String }, 阅读全文
posted @ 2020-07-28 22:43 尾野 阅读(515) 评论(0) 推荐(0) 编辑