Complete the code to find documents where age is greater than 25.
db.users.find({ age: { [1]: 25 } })The $gt operator means 'greater than'. It finds documents where the age is more than 25.
Complete the code to find documents where the status is either 'A' or 'B'.
db.orders.find({ status: { [1]: ["A", "B"] } })The $in operator matches any value in the given array. It finds documents where status is 'A' or 'B'.
Fix the error in the query to find documents where score is less than or equal to 80.
db.scores.find({ score: { [1]: 80 } })The $lte operator means 'less than or equal to'. It finds scores 80 or below.
Fill both blanks to find documents where price is greater than 50 and less than 100.
db.products.find({ price: { [1]: 50, [2]: 100 } })Use $gt for 'greater than 50' and $lt for 'less than 100' to find prices between 50 and 100.
Fill all three blanks to find documents where age is at least 18, less than 65, and status is 'active'.
db.users.find({ age: { [1]: 18, [2]: 65 }, status: [3] })Use $gte for 'age at least 18', $lt for 'age less than 65', and set status to the string 'active'.