Solution: Using Comparison Operators
We'll cover the following...
Query
db.products.find({ stock: { $lte: 30 } },{ name: 1 })
The explanation of the query is given below:
Line 1:
db.products.findtells MongoDB to search theproductscollection and return documents that match a specific condition. The search ...