logo

Crowdly

Browser

Add to Chrome

You have an e-commerce database with two collections: orders (each order docu...

✅ 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?

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome