Aggregation filter after $lookup
The question here is actually about something different and does not need $lookup at all. But for anyone arriving here purely from the title of “filtering after $lookup” then these are the techniques for you: MongoDB 3.6 – Sub-pipeline db.test.aggregate([ { “$match”: { “id”: 100 } }, { “$lookup”: { “from”: “test”, “let”: { “id”: … Read more