Complete the code to add a single condition to the Firestore query.
const query = firestore.collection('users').where('age', '==', [1]);
The value for the 'where' condition should be a number without quotes for age.
Complete the code to add a second condition to the Firestore query.
const query = firestore.collection('users').where('age', '>=', 18).where('status', [1], 'active');
The operator '==' is used to check if the status equals 'active'.
Fix the error in the Firestore query that tries to use an unsupported operator.
const query = firestore.collection('users').where('age', [1], 18);
The operator '==' is supported for simple equality checks. '!=' is not supported in Firestore queries.
Fill both blanks to create a compound query filtering users by age and city.
const query = firestore.collection('users').where('age', [1], 21).where('city', [2], 'Seattle');
Use '>=' to filter users aged 21 or older, and '==' to filter users in Seattle.
Fill all three blanks to create a Firestore query filtering products by category, price, and availability.
const query = firestore.collection('products').where('category', [1], 'electronics').where('price', [2], 100).where('inStock', [3], true);
Use '==' to filter category and inStock status, and '<=' to filter price less than or equal to 100.