Complete the code to query documents where the 'tags' array contains 'cloud'.
const query = firestore.collection('articles').where('tags', '[1]', 'cloud');
The 'array-contains' operator checks if an array field contains a specific value.
Complete the code to query documents where the 'categories' array contains any of the values in ['tech', 'science'].
const query = firestore.collection('posts').where('categories', '[1]', ['tech', 'science']);
The 'array-contains-any' operator checks if an array contains any of the specified values.
Fix the error in the query to find documents where 'skills' array contains 'firebase'.
const query = firestore.collection('users').where('skills', '[1]', 'firebase');
The correct operator to check if an array contains a specific value is 'array-contains'.
Fill both blanks to query documents where the 'features' array contains any of the values ['fast', 'reliable'], and limit to 5 results.
const query = firestore.collection('products').where('features', '[1]', ['fast', 'reliable']).limit([2]);
Use 'array-contains-any' to check for multiple values in an array. Limit the results to 5 documents.
Fill all three blanks to query documents where 'tags' array contains 'cloud', order by 'date', and limit to 3 results.
const query = firestore.collection('events').where('tags', '[1]', 'cloud').orderBy('[2]').limit([3]);
Use 'array-contains' to filter by array value, order by 'date' field, and limit results to 3.