MongoDB — project some fields instead of all inside $lookup
I am working with MongoDB aggregation and I need to use $lookup to lookup another collection. After the $lookup stage, I only want some fields from another collection, so I look for a solution to project inside the $lookup…