Skip to content

Relations

Relations

db.books.aggregate([{$lookup: {
from: "authors", // from what other collection
localField: "authors",
foreignField: "_id",
as: "creators"
}}])