✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
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?