Use the following questions to help you review the material in this tutorial.
-
Question 1 of 5
1. Question
You are building a query to retrieve documents from a collection that stores information about your company’s
inventory
. The query is based on the inventory array, which includes multiple embedded documents.Each embedded document contains the
product
andin_stock
fields. You want to find the warehouses that have at least 20 items of a specific product.Which operator should the query include to return the correct documents?