Tag: 系列的

通过node.js使用async.js

Visit.js – 注意folloup.id引用0或“n”访问(如树) var visitSchema = new Schema({ code : {type: String, trim: true, required: false, default: ""}, Client : { id: {type: Schema.Types.ObjectId, ref: 'Client'}, }, attendant : [{ name : {type: String, trim: true, required: false, default: ""}, }], followup : [{ id : {type: Schema.Types.ObjectId, ref: 'Visit'} }], }); Client.js var clientSchema […]