Back to Developer Roadmap

$lookup

src/data/roadmaps/mongodb/content/lookup@strw_oGTkZEH-o8zA4IRP.md

4.0645 B
Original Source

$lookup

The $lookup aggregation stage performs left outer joins between collections, similar to SQL JOINs. It adds an array field containing matching documents from the "joined" collection based on specified local and foreign fields. $lookup supports pipeline-based lookups for complex matching conditions and enables denormalization of related data for efficient querying and reporting.

Visit the following resources to learn more: