This repository has been archived by the owner on May 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jason Abbott
committed
Oct 27, 2017
1 parent
1d2448a
commit 6005baf
Showing
12 changed files
with
106 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"title": "Firestore Index Definitions", | ||
"type": "object", | ||
"properties": { | ||
"indexes": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The resource name of the index." | ||
}, | ||
"collectionId": { | ||
"type": "string", | ||
"pattern": "^[a-zA-Z0-9_]+$", | ||
"description": "The collection ID to which this index applies." | ||
}, | ||
"fields": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"fieldPath": { | ||
"type": "string", | ||
"pattern": "^[a-zA-Z0-9_\/]+$", | ||
"description": "The path of the field. Special field paths __name__, __type__, and __scatter__ may be used." | ||
}, | ||
"mode": { | ||
"enum": [ | ||
"ASCENDING", | ||
"DESCENDING", | ||
"MODE_UNSPECIFIED" | ||
], | ||
"description": "The mode determines how a field is indexed." | ||
} | ||
}, | ||
"uniqueItems": true, | ||
"required": ["fieldPath"] | ||
}, | ||
"minItems": 1 | ||
}, | ||
"state": { | ||
"enum": [ | ||
"STATE_UNSPECIFIED", | ||
"DISABLED", | ||
"ENABLED", | ||
"ENABLING", | ||
"DISABLING", | ||
"ERROR" | ||
], | ||
"description": "The state of the index. The state is read-only and is manipulated by using the enable and disable RPCs. During enabling, the process could result in an error, in which case the index will move to the ERROR state. The process can be recovered by either fixing the data that caused the error and retrying by calling enable or by aborting the index build by calling disable." | ||
} | ||
}, | ||
"required": ["collectionId", "fields"] | ||
}, | ||
"minItems": 1 | ||
} | ||
}, | ||
"required": ["indexes"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"indexes": [ | ||
{ | ||
"name": "my index", | ||
"collectionId": "widgets", | ||
"fields": [ | ||
{ "fieldPath": "foo", "mode": "ASCENDING" }, | ||
{ "fieldPath": "bar", "mode": "DESCENDING" }, | ||
{ "fieldPath": "baz", "mode": "ASCENDING" } | ||
] | ||
} | ||
] | ||
} |