Complete the code to query documents where the field 'status' is in a list of values.
db.collection('orders').where('status', '[1]', ['pending', 'shipped']).get()
The 'in' operator allows querying documents where the field matches any value in the given list.
Complete the code to query documents where the field 'category' is not in a list of values.
db.collection('products').where('category', '[1]', ['electronics', 'furniture']).get()
The 'not-in' operator filters documents where the field's value is not in the specified list.
Fix the error in the query to find documents where 'tags' array contains any of the given values.
db.collection('posts').where('tags', '[1]', ['news', 'updates']).get()
'array-contains-any' checks if the array field contains any of the specified values.
Fill both blanks to query documents where 'status' is in a list and 'priority' is not in another list.
db.collection('tasks').where('status', '[1]', ['open', 'in-progress']).where('priority', '[2]', ['low', 'medium']).get()
Use 'in' to include documents with matching 'status' values and 'not-in' to exclude documents with certain 'priority' values.
Fill all three blanks to query documents where 'category' is in a list, 'tags' array contains any value from a list, and 'status' is not in another list.
db.collection('items').where('category', '[1]', ['books', 'games']).where('tags', '[2]', ['bestseller', 'new']).where('status', '[3]', ['archived', 'deleted']).get()
Use 'in' for matching 'category', 'array-contains-any' for matching any tag, and 'not-in' to exclude certain statuses.