I am using $lookup to join another collection and would like to use projection to limit the fields returned from the joined collection.
Any examples would be appreciated.
I am using $lookup to join another collection and would like to use projection to limit the fields returned from the joined collection.
Any examples would be appreciated.
Plenty of examples in
M121 from MongoDB University is great to have a good starting understanding.
Thanks but none of those examples use $lookup and $project together. I was able to piece together a working aggregate from some random examples here on the boards.