✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
You have an e-commerce database with two collections: orders (each order document has an array field productIds) and products (each product document has _id as the product ID and other details). You want an aggregation pipeline that, for each order, outputs a separate document for each product in that order, including the product’s details. Which of the following pipelines achieves this?