Need Assistance?

support@tutorialshub.in

Aggregation Framework

Joining Collections ($lookup & $unwind)

ADVERTISEMENT
MongoDB Free Lesson
5 min read
ADVERTISEMENT

Use $lookup to perform a left outer join with another collection in the same database. Because $lookup outputs an array, pair it with $unwind when you know there is a single parent document.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you