$lookup: Bringing in Related Documents

$lookup brings matching documents from another collection into each document of a pipeline, such as each order's customer, as an array you can unwind, and a lookup a screen needs on every read is a sign to embed or copy those fields instead.

By

Updated

Cheat sheet: $lookup: Bringing in Related Documents
Category
MongoDB
Level
Journeyman
Tags
$lookup, Document Reference, Embedding vs Referencing, mongodb