假设有如下mongodb的schema定义: drawApply = new Schema({ salesId: { type: Schema.ObjectId, ref: 'sales' }, money: Number, status: { type: Number, default: 0 }, createTime: { type: Date, default: Date.now } }); sales = new Schema({ name: { type: String, requir…