MongoDB: $lookup returns empty array [duplicate]
问题 This question already has answers here : Mongoose always returning an empty array NodeJS (1 answer) Querying after populate in Mongoose (6 answers) Closed last year . I have two models, user and schedule, and i want to combine these two using $lookup and mongoose. User (model) name: { type: String, required: true }, firstName: { String }, lastName: { String }, storeKey: { type: String, required: true }, avatar: String, birthday: String, phone: { type: String }, doc: String, email: { type: