Skip to content

Commit 23e6147

Browse files
fix(firebase-x): filters for fetchFirestoreCollection (#4733)
1 parent 51d82f5 commit 23e6147

File tree

1 file changed

+2
-0
lines changed
  • src/@awesome-cordova-plugins/plugins/firebase-x

1 file changed

+2
-0
lines changed

src/@awesome-cordova-plugins/plugins/firebase-x/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,13 +1018,15 @@ export class FirebaseX extends AwesomeCordovaNativePlugin {
10181018
* Fetches all the documents in the specific collection.
10191019
*
10201020
* @param {string} collection - name of top-level collection to fetch.
1021+
* @param {Array} filters - filters to apply to collection.
10211022
* @param {Function} success - callback function to call on successfully deleting the document. Will be passed an {object} containing all the documents in the collection,
10221023
* indexed by document ID. If a Firebase collection with that name does not exist or it contains no documents, the object will be empty.
10231024
* @param {Function} error - callback function which will be passed a {string} error message as an argument.
10241025
*/
10251026
@Cordova()
10261027
fetchFirestoreCollection(
10271028
collection: string,
1029+
filters: any[],
10281030
success: (docs: any) => void,
10291031
error: (err: string) => void
10301032
): Promise<any> {

0 commit comments

Comments
 (0)