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. |
apiScope |
The API scope supported by this index. |
fields[] |
The fields supported by this index. For composite indexes, this requires a minimum of 2 and a maximum of 100 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. |