Deploying indexes is necessary in order to perform certain queries from your Firestore database. Firestore automatically adds indexes for the most basic queries. However, when you apply both filtering and ordering while querying a collection, an index is necessary and FlutterFlow will generate a warning to add it.
FlutterFlow creates indexes for you. The only thing you have to do is deploy them to your Firestore database.
Here are the steps to deploy indexes.
- Click on the Firestore from the Navigation Menu (left side of your screen).
- Switch to the Settings tab.
- Scroll down to the Firestore Indexes section.
- Click on Deploy.
Deploying Firestore Indexes