Concept Flow - $lookup with pipeline (advanced join)
Start with main collection
$lookup stage with pipeline
For each main doc, run pipeline on joined collection
Match, filter, or transform joined docs
Add joined docs as array field
Output enriched documents
The $lookup with pipeline runs a custom query on the joined collection for each document in the main collection, then adds the results as a new array field.