我有一个结构是这样的骨架,因为一个ui可能会有多个type:
然后type的骨架是这样的:
const typeSchema = new Schema({
name: {
type: String
},
createDate: {
type: String
},
updateDate: {
type: String
},
uId: {
type: ObjectId,
ref: 'User'
}
});
那我在往 ui 中插入数据的时候该怎么写呢,找了好久,一脸懵逼。
各位大神给点思路。
相关分类