Missing data in next aggregation stage after $lookup
问题 thanks for come to my post. I'm new in MongoDB, and I need help with it. I need to select user data from DB, so I have a pretty simple pipeline: const pipeline = [{ $match: { type: 'student', counselorUserName: username }, $project: { username: '$username', email: '$email', phone: '$phone', fullName: '$fullName', gradeLevel: { $switch: { branches: [{ case: { $eq: ['$gradeLevel', '9'] }, then: 'Freshman' }, { case: { $eq: ['$gradeLevel', '10'] }, then: 'Sophomore' }, ], default: "Freshman" } }