Resource: Index
Cloud Firestore indexes enable simple and complex queries against documents in a database.
| JSON representation | 
|---|
| { "name": string, "queryScope": enum ( | 
| Fields | |
|---|---|
| name | 
 Output only. A server defined name for this index. The form of this name for composite indexes will be:  | 
| queryScope | 
 Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection id. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection id as this index. | 
| fields[] | 
 The fields supported by this index. For composite indexes, this is always 2 or more fields. The last field entry is always for the field path  For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field. | 
| state | 
 Output only. The serving state of the index. | 
| Methods | |
|---|---|
| 
 | Creates a composite index. | 
| 
 | Deletes a composite index. | 
| 
 | Gets a composite index. | 
| 
 | Lists composite indexes. |