Tsallaka zuwa abun ciki
Justice Tech School

$lookup

A left outer join.

Example
db.orders.aggregate([
  { $lookup: { from: "users", localField: "user_id", foreignField: "_id", as: "user" } }
])

Exercise

Join.

{ : { from: "users" } }

Quiz Test

What does $lookup do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.