@firebase/firestore 3.8.4 → 3.9.0-20230314181055

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/firestore/src/lite-api/query.d.ts +11 -19
  3. package/dist/firestore/src/lite-api/reference.d.ts +1 -1
  4. package/dist/firestore/src/util/debug_uid.d.ts +28 -0
  5. package/dist/firestore/test/unit/specs/spec_builder.d.ts +3 -0
  6. package/dist/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
  7. package/dist/index.cjs.js +1359 -1309
  8. package/dist/index.cjs.js.map +1 -1
  9. package/dist/index.d.ts +66 -14
  10. package/dist/index.esm2017.js +1272 -1222
  11. package/dist/index.esm2017.js.map +1 -1
  12. package/dist/index.esm5.js +1335 -1259
  13. package/dist/index.esm5.js.map +1 -1
  14. package/dist/index.node.cjs.js +97 -32
  15. package/dist/index.node.cjs.js.map +1 -1
  16. package/dist/index.node.mjs +97 -32
  17. package/dist/index.node.mjs.map +1 -1
  18. package/dist/index.rn.js +1380 -1330
  19. package/dist/index.rn.js.map +1 -1
  20. package/dist/internal.d.ts +12 -20
  21. package/dist/lite/firestore/src/lite-api/query.d.ts +11 -19
  22. package/dist/lite/firestore/src/lite-api/reference.d.ts +1 -1
  23. package/dist/lite/firestore/src/util/debug_uid.d.ts +28 -0
  24. package/dist/lite/firestore/test/unit/specs/spec_builder.d.ts +3 -0
  25. package/dist/lite/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
  26. package/dist/lite/index.browser.esm2017.js +775 -730
  27. package/dist/lite/index.browser.esm2017.js.map +1 -1
  28. package/dist/lite/index.browser.esm5.js +736 -693
  29. package/dist/lite/index.browser.esm5.js.map +1 -1
  30. package/dist/lite/index.cjs.js +775 -730
  31. package/dist/lite/index.cjs.js.map +1 -1
  32. package/dist/lite/index.d.ts +66 -14
  33. package/dist/lite/index.node.cjs.js +76 -18
  34. package/dist/lite/index.node.cjs.js.map +1 -1
  35. package/dist/lite/index.node.mjs +76 -18
  36. package/dist/lite/index.node.mjs.map +1 -1
  37. package/dist/lite/index.rn.esm2017.js +777 -732
  38. package/dist/lite/index.rn.esm2017.js.map +1 -1
  39. package/dist/lite/internal.d.ts +12 -20
  40. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +139 -142
  41. package/dist/lite/packages/firestore/src/lite-api/query.d.ts +11 -19
  42. package/dist/lite/packages/firestore/src/lite-api/reference.d.ts +1 -1
  43. package/dist/lite/packages/firestore/src/util/debug_uid.d.ts +28 -0
  44. package/dist/lite/packages/firestore/test/unit/specs/spec_builder.d.ts +3 -0
  45. package/dist/lite/packages/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
  46. package/dist/lite/private.d.ts +72 -16
  47. package/dist/packages/firestore/dist/index.esm2017.d.ts +157 -160
  48. package/dist/packages/firestore/src/lite-api/query.d.ts +11 -19
  49. package/dist/packages/firestore/src/lite-api/reference.d.ts +1 -1
  50. package/dist/packages/firestore/src/util/debug_uid.d.ts +28 -0
  51. package/dist/packages/firestore/test/unit/specs/spec_builder.d.ts +3 -0
  52. package/dist/packages/firestore/test/unit/specs/spec_test_components.d.ts +5 -1
  53. package/dist/private.d.ts +72 -16
  54. package/package.json +2 -2
@@ -99,6 +99,18 @@ export declare interface AggregateSpec {
99
99
  export declare type AggregateSpecData<T extends AggregateSpec> = {
100
100
  [P in keyof T]: T[P] extends AggregateField<infer U> ? U : never;
101
101
  };
102
+ /* Excluded from this release type: AggregateType */
103
+ /**
104
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
105
+ * the given filter constraints. A conjunction filter includes a document if it
106
+ * satisfies all of the given filters.
107
+ *
108
+ * @param queryConstraints - Optional. The list of
109
+ * {@link QueryFilterConstraint}s to perform a conjunction for. These must be
110
+ * created with calls to {@link where}, {@link or}, or {@link and}.
111
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
112
+ */
113
+ export declare function and(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
102
114
  /**
103
115
  * Returns a special value that can be used with {@link (setDoc:1)} or {@link
104
116
  * updateDoc:1} that tells the server to remove the given elements from any
@@ -233,7 +245,7 @@ export declare function collection(reference: DocumentReference, path: string, .
233
245
  export declare function collectionGroup(firestore: Firestore, collectionId: string): Query<DocumentData>;
234
246
  /**
235
247
  * A `CollectionReference` object can be used for adding documents, getting
236
- * document references, and querying for documents (using {@link query}).
248
+ * document references, and querying for documents (using {@link (query:1)}).
237
249
  */
238
250
  export declare class CollectionReference<T = DocumentData> extends Query<T> {
239
251
  /** The type of this Firestore reference. */
@@ -849,6 +861,17 @@ export { LogLevel };
849
861
  export declare type NestedUpdateFields<T extends Record<string, unknown>> = UnionToIntersection<{
850
862
  [K in keyof T & string]: ChildUpdateFields<K, T[K]>;
851
863
  }[keyof T & string]>;
864
+ /**
865
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
866
+ * the given filter constraints. A disjunction filter includes a document if it
867
+ * satisfies any of the given filters.
868
+ *
869
+ * @param queryConstraints - Optional. The list of
870
+ * {@link QueryFilterConstraint}s to perform a disjunction for. These must be
871
+ * created with calls to {@link where}, {@link or}, or {@link and}.
872
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
873
+ */
874
+ export declare function or(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
852
875
  /**
853
876
  * Creates a {@link QueryOrderByConstraint} that sorts the query result by the
854
877
  * specified field, optionally in descending order instead of ascending.
@@ -916,7 +939,21 @@ export declare class Query<T = DocumentData> {
916
939
  */
917
940
  withConverter<U>(converter: FirestoreDataConverter<U>): Query<U>;
918
941
  }
919
- /* Excluded declaration from this release type: query */
942
+ /**
943
+ * Creates a new immutable instance of {@link Query} that is extended to also
944
+ * include additional query constraints.
945
+ *
946
+ * @param query - The {@link Query} instance to use as a base for the new
947
+ * constraints.
948
+ * @param compositeFilter - The {@link QueryCompositeFilterConstraint} to
949
+ * apply. Create {@link QueryCompositeFilterConstraint} using {@link and} or
950
+ * {@link or}.
951
+ * @param queryConstraints - Additional {@link QueryNonFilterConstraint}s to
952
+ * apply (e.g. {@link orderBy}, {@link limit}).
953
+ * @throws if any of the provided query constraints cannot be combined with the
954
+ * existing or new constraints.
955
+ */
956
+ export declare function query<T>(query: Query<T>, compositeFilter: QueryCompositeFilterConstraint, ...queryConstraints: QueryNonFilterConstraint[]): Query<T>;
920
957
  /**
921
958
  * Creates a new immutable instance of {@link Query} that is extended to also
922
959
  * include additional query constraints.
@@ -928,13 +965,24 @@ export declare class Query<T = DocumentData> {
928
965
  * existing or new constraints.
929
966
  */
930
967
  export declare function query<T>(query: Query<T>, ...queryConstraints: QueryConstraint[]): Query<T>;
931
- /* Excluded from this release type: QueryCompositeFilterConstraint */
968
+ /**
969
+ * A `QueryCompositeFilterConstraint` is used to narrow the set of documents
970
+ * returned by a Firestore query by performing the logical OR or AND of multiple
971
+ * {@link QueryFieldFilterConstraint}s or {@link QueryCompositeFilterConstraint}s.
972
+ * `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
973
+ * {@link and} and can then be passed to {@link (query:1)} to create a new query
974
+ * instance that also contains the `QueryCompositeFilterConstraint`.
975
+ */
976
+ export declare class QueryCompositeFilterConstraint {
977
+ /** The type of this query constraint */
978
+ readonly type: 'or' | 'and';
979
+ }
932
980
  /**
933
981
  * A `QueryConstraint` is used to narrow the set of documents returned by a
934
982
  * Firestore query. `QueryConstraint`s are created by invoking {@link where},
935
- * {@link orderBy}, {@link startAt}, {@link startAfter}, {@link
936
- * endBefore}, {@link endAt}, {@link limit}, {@link limitToLast} and
937
- * can then be passed to {@link query} to create a new query instance that
983
+ * {@link orderBy}, {@link (startAt:1)}, {@link (startAfter:1)}, {@link
984
+ * (endBefore:1)}, {@link (endAt:1)}, {@link limit}, {@link limitToLast} and
985
+ * can then be passed to {@link (query:1)} to create a new query instance that
938
986
  * also contains this `QueryConstraint`.
939
987
  */
940
988
  export declare abstract class QueryConstraint {
@@ -967,7 +1015,7 @@ export declare class QueryDocumentSnapshot<T = DocumentData> extends DocumentSna
967
1015
  * A `QueryEndAtConstraint` is used to exclude documents from the end of a
968
1016
  * result set returned by a Firestore query.
969
1017
  * `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
970
- * {@link (endBefore:1)} and can then be passed to {@link query} to create a new
1018
+ * {@link (endBefore:1)} and can then be passed to {@link (query:1)} to create a new
971
1019
  * query instance that also contains this `QueryEndAtConstraint`.
972
1020
  */
973
1021
  export declare class QueryEndAtConstraint extends QueryConstraint {
@@ -988,19 +1036,23 @@ export declare function queryEqual<T>(left: Query<T>, right: Query<T>): boolean;
988
1036
  * A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by
989
1037
  * a Firestore query by filtering on one or more document fields.
990
1038
  * `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
991
- * be passed to {@link query} to create a new query instance that also contains
1039
+ * be passed to {@link (query:1)} to create a new query instance that also contains
992
1040
  * this `QueryFieldFilterConstraint`.
993
1041
  */
994
1042
  export declare class QueryFieldFilterConstraint extends QueryConstraint {
995
1043
  /** The type of this query constraint */
996
1044
  readonly type = "where";
997
1045
  }
998
- /* Excluded from this release type: QueryFilterConstraint */
1046
+ /**
1047
+ * `QueryFilterConstraint` is a helper union type that represents
1048
+ * {@link QueryFieldFilterConstraint} and {@link QueryCompositeFilterConstraint}.
1049
+ */
1050
+ export declare type QueryFilterConstraint = QueryFieldFilterConstraint | QueryCompositeFilterConstraint;
999
1051
  /**
1000
1052
  * A `QueryLimitConstraint` is used to limit the number of documents returned by
1001
1053
  * a Firestore query.
1002
1054
  * `QueryLimitConstraint`s are created by invoking {@link limit} or
1003
- * {@link limitToLast} and can then be passed to {@link query} to create a new
1055
+ * {@link limitToLast} and can then be passed to {@link (query:1)} to create a new
1004
1056
  * query instance that also contains this `QueryLimitConstraint`.
1005
1057
  */
1006
1058
  export declare class QueryLimitConstraint extends QueryConstraint {
@@ -1012,15 +1064,15 @@ export declare class QueryLimitConstraint extends QueryConstraint {
1012
1064
  * QueryConstraints which are used to narrow or order the set of documents,
1013
1065
  * but that do not explicitly filter on a document field.
1014
1066
  * `QueryNonFilterConstraint`s are created by invoking {@link orderBy},
1015
- * {@link startAt}, {@link startAfter}, {@link endBefore}, {@link endAt},
1016
- * {@link limit} or {@link limitToLast} and can then be passed to {@link query}
1067
+ * {@link (startAt:1)}, {@link (startAfter:1)}, {@link (endBefore:1)}, {@link (endAt:1)},
1068
+ * {@link limit} or {@link limitToLast} and can then be passed to {@link (query:1)}
1017
1069
  * to create a new query instance that also contains the `QueryConstraint`.
1018
1070
  */
1019
1071
  export declare type QueryNonFilterConstraint = QueryOrderByConstraint | QueryLimitConstraint | QueryStartAtConstraint | QueryEndAtConstraint;
1020
1072
  /**
1021
1073
  * A `QueryOrderByConstraint` is used to sort the set of documents returned by a
1022
1074
  * Firestore query. `QueryOrderByConstraint`s are created by invoking
1023
- * {@link orderBy} and can then be passed to {@link query} to create a new query
1075
+ * {@link orderBy} and can then be passed to {@link (query:1)} to create a new query
1024
1076
  * instance that also contains this `QueryOrderByConstraint`.
1025
1077
  *
1026
1078
  * Note: Documents that do not contain the orderBy field will not be present in
@@ -1063,7 +1115,7 @@ export declare class QuerySnapshot<T = DocumentData> {
1063
1115
  * A `QueryStartAtConstraint` is used to exclude documents from the start of a
1064
1116
  * result set returned by a Firestore query.
1065
1117
  * `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or
1066
- * {@link (startAfter:1)} and can then be passed to {@link query} to create a
1118
+ * {@link (startAfter:1)} and can then be passed to {@link (query:1)} to create a
1067
1119
  * new query instance that also contains this `QueryStartAtConstraint`.
1068
1120
  */
1069
1121
  export declare class QueryStartAtConstraint extends QueryConstraint {
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var nodeFetch__default = /*#__PURE__*/_interopDefaultLegacy(nodeFetch);
16
16
 
17
- const version$1 = "3.8.4";
17
+ const version$1 = "3.9.0-20230314181055";
18
18
 
19
19
  /**
20
20
  * @license
@@ -67,7 +67,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
67
67
  User.FIRST_PARTY = new User('first-party-uid');
68
68
  User.MOCK_USER = new User('mock-user');
69
69
 
70
- const version = "9.17.2";
70
+ const version = "9.18.0-20230314181055";
71
71
 
72
72
  /**
73
73
  * @license
@@ -1185,6 +1185,66 @@ function validatePositiveNumber(functionName, n) {
1185
1185
  }
1186
1186
  }
1187
1187
 
1188
+ /**
1189
+ * @license
1190
+ * Copyright 2023 Google LLC
1191
+ *
1192
+ * Licensed under the Apache License, Version 2.0 (the "License");
1193
+ * you may not use this file except in compliance with the License.
1194
+ * You may obtain a copy of the License at
1195
+ *
1196
+ * http://www.apache.org/licenses/LICENSE-2.0
1197
+ *
1198
+ * Unless required by applicable law or agreed to in writing, software
1199
+ * distributed under the License is distributed on an "AS IS" BASIS,
1200
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1201
+ * See the License for the specific language governing permissions and
1202
+ * limitations under the License.
1203
+ */
1204
+ /**
1205
+ * The value returned from the most recent invocation of
1206
+ * `generateUniqueDebugId()`, or null if it has never been invoked.
1207
+ */
1208
+ let lastUniqueDebugId = null;
1209
+ /**
1210
+ * Generates and returns an initial value for `lastUniqueDebugId`.
1211
+ *
1212
+ * The returned value is randomly selected from a range of integers that are
1213
+ * represented as 8 hexadecimal digits. This means that (within reason) any
1214
+ * numbers generated by incrementing the returned number by 1 will also be
1215
+ * represented by 8 hexadecimal digits. This leads to all "IDs" having the same
1216
+ * length when converted to a hexadecimal string, making reading logs containing
1217
+ * these IDs easier to follow. And since the return value is randomly selected
1218
+ * it will help to differentiate between logs from different executions.
1219
+ */
1220
+ function generateInitialUniqueDebugId() {
1221
+ const minResult = 0x10000000;
1222
+ const maxResult = 0x90000000;
1223
+ const resultRange = maxResult - minResult;
1224
+ const resultOffset = Math.round(resultRange * Math.random());
1225
+ return minResult + resultOffset;
1226
+ }
1227
+ /**
1228
+ * Generates and returns a unique ID as a hexadecimal string.
1229
+ *
1230
+ * The returned ID is intended to be used in debug logging messages to help
1231
+ * correlate log messages that may be spatially separated in the logs, but
1232
+ * logically related. For example, a network connection could include the same
1233
+ * "debug ID" string in all of its log messages to help trace a specific
1234
+ * connection over time.
1235
+ *
1236
+ * @return the 10-character generated ID (e.g. "0xa1b2c3d4").
1237
+ */
1238
+ function generateUniqueDebugId() {
1239
+ if (lastUniqueDebugId === null) {
1240
+ lastUniqueDebugId = generateInitialUniqueDebugId();
1241
+ }
1242
+ else {
1243
+ lastUniqueDebugId++;
1244
+ }
1245
+ return '0x' + lastUniqueDebugId.toString(16);
1246
+ }
1247
+
1188
1248
  /**
1189
1249
  * @license
1190
1250
  * Copyright 2020 Google LLC
@@ -1241,15 +1301,16 @@ class RestConnection {
1241
1301
  return false;
1242
1302
  }
1243
1303
  invokeRPC(rpcName, path, req, authToken, appCheckToken) {
1304
+ const streamId = generateUniqueDebugId();
1244
1305
  const url = this.makeUrl(rpcName, path);
1245
- logDebug(LOG_TAG$3, 'Sending: ', url, req);
1306
+ logDebug(LOG_TAG$3, `Sending RPC '${rpcName}' ${streamId}:`, url, req);
1246
1307
  const headers = {};
1247
1308
  this.modifyHeadersForRequest(headers, authToken, appCheckToken);
1248
1309
  return this.performRPCRequest(rpcName, url, headers, req).then(response => {
1249
- logDebug(LOG_TAG$3, 'Received: ', response);
1310
+ logDebug(LOG_TAG$3, `Received RPC '${rpcName}' ${streamId}: `, response);
1250
1311
  return response;
1251
1312
  }, (err) => {
1252
- logWarn(LOG_TAG$3, `${rpcName} failed with error: `, err, 'url: ', url, 'request:', req);
1313
+ logWarn(LOG_TAG$3, `RPC '${rpcName}' ${streamId} failed with error: `, err, 'url: ', url, 'request:', req);
1253
1314
  throw err;
1254
1315
  });
1255
1316
  }
@@ -5879,7 +5940,7 @@ class Query {
5879
5940
  }
5880
5941
  /**
5881
5942
  * A `CollectionReference` object can be used for adding documents, getting
5882
- * document references, and querying for documents (using {@link query}).
5943
+ * document references, and querying for documents (using {@link (query:1)}).
5883
5944
  */
5884
5945
  class CollectionReference extends Query {
5885
5946
  /** @hideconstructor */
@@ -7162,9 +7223,9 @@ class AppliableConstraint {
7162
7223
  /**
7163
7224
  * A `QueryConstraint` is used to narrow the set of documents returned by a
7164
7225
  * Firestore query. `QueryConstraint`s are created by invoking {@link where},
7165
- * {@link orderBy}, {@link startAt}, {@link startAfter}, {@link
7166
- * endBefore}, {@link endAt}, {@link limit}, {@link limitToLast} and
7167
- * can then be passed to {@link query} to create a new query instance that
7226
+ * {@link orderBy}, {@link (startAt:1)}, {@link (startAfter:1)}, {@link
7227
+ * (endBefore:1)}, {@link (endAt:1)}, {@link limit}, {@link limitToLast} and
7228
+ * can then be passed to {@link (query:1)} to create a new query instance that
7168
7229
  * also contains this `QueryConstraint`.
7169
7230
  */
7170
7231
  class QueryConstraint extends AppliableConstraint {
@@ -7185,7 +7246,7 @@ function query(query, queryConstraint, ...additionalQueryConstraints) {
7185
7246
  * A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by
7186
7247
  * a Firestore query by filtering on one or more document fields.
7187
7248
  * `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
7188
- * be passed to {@link query} to create a new query instance that also contains
7249
+ * be passed to {@link (query:1)} to create a new query instance that also contains
7189
7250
  * this `QueryFieldFilterConstraint`.
7190
7251
  */
7191
7252
  class QueryFieldFilterConstraint extends QueryConstraint {
@@ -7235,9 +7296,8 @@ function where(fieldPath, opStr, value) {
7235
7296
  * returned by a Firestore query by performing the logical OR or AND of multiple
7236
7297
  * {@link QueryFieldFilterConstraint}s or {@link QueryCompositeFilterConstraint}s.
7237
7298
  * `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
7238
- * {@link and} and can then be passed to {@link query} to create a new query
7299
+ * {@link and} and can then be passed to {@link (query:1)} to create a new query
7239
7300
  * instance that also contains the `QueryCompositeFilterConstraint`.
7240
- * @internal TODO remove this internal tag with OR Query support in the server
7241
7301
  */
7242
7302
  class QueryCompositeFilterConstraint extends AppliableConstraint {
7243
7303
  /**
@@ -7290,7 +7350,6 @@ class QueryCompositeFilterConstraint extends AppliableConstraint {
7290
7350
  * {@link QueryFilterConstraint}s to perform a disjunction for. These must be
7291
7351
  * created with calls to {@link where}, {@link or}, or {@link and}.
7292
7352
  * @returns The newly created {@link QueryCompositeFilterConstraint}.
7293
- * @internal TODO remove this internal tag with OR Query support in the server
7294
7353
  */
7295
7354
  function or(...queryConstraints) {
7296
7355
  // Only support QueryFilterConstraints
@@ -7306,7 +7365,6 @@ function or(...queryConstraints) {
7306
7365
  * {@link QueryFilterConstraint}s to perform a conjunction for. These must be
7307
7366
  * created with calls to {@link where}, {@link or}, or {@link and}.
7308
7367
  * @returns The newly created {@link QueryCompositeFilterConstraint}.
7309
- * @internal TODO remove this internal tag with OR Query support in the server
7310
7368
  */
7311
7369
  function and(...queryConstraints) {
7312
7370
  // Only support QueryFilterConstraints
@@ -7316,7 +7374,7 @@ function and(...queryConstraints) {
7316
7374
  /**
7317
7375
  * A `QueryOrderByConstraint` is used to sort the set of documents returned by a
7318
7376
  * Firestore query. `QueryOrderByConstraint`s are created by invoking
7319
- * {@link orderBy} and can then be passed to {@link query} to create a new query
7377
+ * {@link orderBy} and can then be passed to {@link (query:1)} to create a new query
7320
7378
  * instance that also contains this `QueryOrderByConstraint`.
7321
7379
  *
7322
7380
  * Note: Documents that do not contain the orderBy field will not be present in
@@ -7362,7 +7420,7 @@ function orderBy(fieldPath, directionStr = 'asc') {
7362
7420
  * A `QueryLimitConstraint` is used to limit the number of documents returned by
7363
7421
  * a Firestore query.
7364
7422
  * `QueryLimitConstraint`s are created by invoking {@link limit} or
7365
- * {@link limitToLast} and can then be passed to {@link query} to create a new
7423
+ * {@link limitToLast} and can then be passed to {@link (query:1)} to create a new
7366
7424
  * query instance that also contains this `QueryLimitConstraint`.
7367
7425
  */
7368
7426
  class QueryLimitConstraint extends QueryConstraint {
@@ -7413,7 +7471,7 @@ function limitToLast(limit) {
7413
7471
  * A `QueryStartAtConstraint` is used to exclude documents from the start of a
7414
7472
  * result set returned by a Firestore query.
7415
7473
  * `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or
7416
- * {@link (startAfter:1)} and can then be passed to {@link query} to create a
7474
+ * {@link (startAfter:1)} and can then be passed to {@link (query:1)} to create a
7417
7475
  * new query instance that also contains this `QueryStartAtConstraint`.
7418
7476
  */
7419
7477
  class QueryStartAtConstraint extends QueryConstraint {
@@ -7448,7 +7506,7 @@ function startAfter(...docOrFields) {
7448
7506
  * A `QueryEndAtConstraint` is used to exclude documents from the end of a
7449
7507
  * result set returned by a Firestore query.
7450
7508
  * `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
7451
- * {@link (endBefore:1)} and can then be passed to {@link query} to create a new
7509
+ * {@link (endBefore:1)} and can then be passed to {@link (query:1)} to create a new
7452
7510
  * query instance that also contains this `QueryEndAtConstraint`.
7453
7511
  */
7454
7512
  class QueryEndAtConstraint extends QueryConstraint {