Exercise · MongoDB: Aggregation, Indexes and Scaling · lesson 6 of 13
Exercise: the most profitable items
The coffee shop is deciding which menu items to put in the display case. Write an aggregation pipeline on the orders collection that finds the three items that brought in the most money.