Class 19 - Database Essentials - MongoDB


Originally published at:


To get the order_items.order_item_quantity =5 using the find query we can also use this
“order_items.order_item_quantity”:5 },
The trick here is to use the $ sign while entering to the array in Json. We also use combinations of 0 and $ if the array have more nesting.