Looking to build a mongo collection using couple of other collections. We do have 3 collections Customer, Products and Orders. The Customer and Product are master collection while the order is a transaction.
Each order shall have 1 customer and multiple products, its quantities, unit rates and the total rates.
Project is to create a Mongo script to insert the 10000 records into the order collection ( the customer and product master already available).