as I’m probably familiar with another variation of $lookup (with localField, foreignField), can you explain to me what this does? Also I’m familiar with $match that has some field…
pipeline - Specifies the pipeline to run on the joined collection. The pipeline determines the resulting documents from the joined collection. To return all documents, specify an empty pipeline[] .
as - Specifies the name of the new array field to add to the joined documents.