Complete the code to query documents where the field 'status' equals 'active'.
db.collection('users').where('status', '==', [1])
The query filters documents where the 'status' field is exactly 'active'.
Complete the code to add a second condition to the query to filter users with age greater than 18.
db.collection('users').where('status', '==', 'active').where('age', [1], 18)
The query filters users older than 18 by using the '>' operator.
Fix the error in the compound query that tries to filter by 'status' and 'age' but uses an invalid operator.
db.collection('users').where('status', '==', 'active').where('age', [1], 18)
The '>' operator is valid for numeric comparisons like age. 'array-contains' and 'in' are for arrays or lists, not numbers.
Fill both blanks to create a compound query filtering users with 'status' 'active' and 'score' greater than 50.
db.collection('users').where('status', [1], [2]).where('score', '>', 50)
The first condition checks if 'status' equals 'active'.
Fill all three blanks to create a compound query filtering users with 'status' 'active', 'score' greater than 50, and 'age' less than 30.
db.collection('users').where('status', [1], [2]).where('score', '>', 50).where('age', [3], 30)
The query filters users with status 'active', score greater than 50, and age less than 30.