Complete the code to match documents where the field 'score' equals 10.
{ $match: { score: { $[1]: 10 } } }The $eq operator checks if the field value is equal to the specified value.
Complete the code to match documents where the field 'age' is greater than 25.
{ $match: { age: { $[1]: 25 } } }The $gt operator matches documents where the field value is greater than the specified value.
Fix the error in the code to correctly match documents where 'price' is greater than 100.
{ $match: { price: { $gt$[1] 100 } } }In MongoDB queries, the operator and value must be separated by a colon :.
Fill both blanks to match documents where 'quantity' equals 5 and 'status' is greater than 2.
{ $match: { quantity: { $[1]: 5 }, status: { $[2]: 2 } } }$eq checks for equality and $gt checks for greater than.
Fill all three blanks to create a $match stage that finds documents where 'score' equals 90, 'age' is greater than 18, and 'level' equals 3.
{ $match: { score: { $[1]: 90 }, age: { $[2]: 18 }, level: { $[3]: 3 } } }Use $eq for equality checks and $gt for greater than.