Your Firestore database in Native mode contains a collection with millions of documents. You need to query documents where the 'tags' field (an array) contains the string 'urgent'. What must you ensure in your index configuration?
Firestore automatically indexes array fields for array-contains queries.
Why this answer
Firestore automatically creates a single-field index for array fields. However, to query array-contains, you need an index on the field with the array-contains filter. Firestore automatically creates a single-field index for the 'tags' field, so no additional index is needed.
If the query includes additional equality clauses, a composite index may be required, but for a simple array-contains, it's automatic.