Skip to content

Glossary: MongoDB

$lookup

An aggregation stage that joins another collection into the pipeline. It matches `localField` to `foreignField` in the `from` collection and puts the matches in a new array field named by `as`.

Where the book teaches it

Related terms

$unwindReferencingStage