@@ -36,6 +36,11 @@ export {
36
36
37
37
/**
38
38
* A single field element in an index configuration.
39
+ *
40
+ * @deprecated Instead of creating cache indexes manually, consider using
41
+ * `enablePersistentCacheIndexAutoCreation()` to let SDK decide whether to
42
+ * create cache indexes for queries running locally.
43
+ *
39
44
* @beta
40
45
*/
41
46
export interface IndexField {
@@ -61,6 +66,11 @@ export interface IndexField {
61
66
62
67
/**
63
68
* The SDK definition of a Firestore index.
69
+ *
70
+ * @deprecated Instead of creating cache indexes manually, consider using
71
+ * `enablePersistentCacheIndexAutoCreation()` to let SDK decide whether to
72
+ * create cache indexes for queries running locally.
73
+ *
64
74
* @beta
65
75
*/
66
76
export interface Index {
@@ -77,6 +87,11 @@ export interface Index {
77
87
*
78
88
* See {@link https://firebase.google.com/docs/reference/firestore/indexes/#json_format | JSON Format}
79
89
* for a description of the format of the index definition.
90
+ *
91
+ * @deprecated Instead of creating cache indexes manually, consider using
92
+ * `enablePersistentCacheIndexAutoCreation()` to let SDK decide whether to
93
+ * create cache indexes for queries running locally.
94
+ *
80
95
* @beta
81
96
*/
82
97
export interface IndexConfiguration {
@@ -104,6 +119,11 @@ export interface IndexConfiguration {
104
119
* @throws FirestoreError if the JSON format is invalid.
105
120
* @returns A `Promise` that resolves once all indices are successfully
106
121
* configured.
122
+ *
123
+ * @deprecated Instead of creating cache indexes manually, consider using
124
+ * `enablePersistentCacheIndexAutoCreation()` to let SDK decide whether to
125
+ * create cache indexes for queries running locally.
126
+ *
107
127
* @beta
108
128
*/
109
129
export function setIndexConfiguration (
@@ -135,6 +155,11 @@ export function setIndexConfiguration(
135
155
* @throws FirestoreError if the JSON format is invalid.
136
156
* @returns A `Promise` that resolves once all indices are successfully
137
157
* configured.
158
+ *
159
+ * @deprecated Instead of creating cache indexes manually, consider using
160
+ * `enablePersistentCacheIndexAutoCreation()` to let SDK decide whether to
161
+ * create cache indexes for queries running locally.
162
+ *
138
163
* @beta
139
164
*/
140
165
export function setIndexConfiguration (
0 commit comments