File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -1395,6 +1395,24 @@ export namespace FirebaseFirestoreTypes {
1395
1395
* @param value The comparison value.
1396
1396
*/
1397
1397
where ( fieldPath : keyof T | FieldPath , opStr : WhereFilterOp , value : any ) : Query < T > ;
1398
+
1399
+ /**
1400
+ * Creates and returns a new Query with the additional filter that documents must contain the specified field and
1401
+ * the value should satisfy the relation constraint provided.
1402
+ *
1403
+ * #### Example
1404
+ *
1405
+ * ```js
1406
+ * // Get all users who's age is 30 or above
1407
+ * const querySnapshot = await firebase.firestore()
1408
+ * .collection('users')
1409
+ * .where(Filter('age', '>=', 30));
1410
+ * .get();
1411
+ * ```
1412
+ *
1413
+ * @param filter The filter to apply to the query.
1414
+ */
1415
+ where ( filter : QueryFilterConstraint | QueryCompositeFilterConstraint ) : Query < T > ;
1398
1416
}
1399
1417
1400
1418
/**
@@ -2047,6 +2065,11 @@ export namespace FirebaseFirestoreTypes {
2047
2065
*/
2048
2066
Timestamp : typeof Timestamp ;
2049
2067
2068
+ /**
2069
+ * Returns the `Filter` function.
2070
+ */
2071
+ Filter : typeof Filter ;
2072
+
2050
2073
/**
2051
2074
* Used to set the cache size to unlimited when passing to `cacheSizeBytes` in
2052
2075
* `firebase.firestore().settings()`.
@@ -2317,6 +2340,8 @@ export const firebase: ReactNativeFirebase.Module & {
2317
2340
) : ReactNativeFirebase . FirebaseApp & { firestore ( ) : FirebaseFirestoreTypes . Module } ;
2318
2341
} ;
2319
2342
2343
+ export const Filter : FilterFunction ;
2344
+
2320
2345
export default defaultExport ;
2321
2346
2322
2347
/**
You can’t perform that action at this time.
0 commit comments