From 58c6298c06f1753f97ece3d26dea419c9a612300 Mon Sep 17 00:00:00 2001 From: Asier Bilbao Date: Tue, 23 Jun 2020 14:40:30 +0200 Subject: [PATCH] add filters option to fetchFirestoreCollection --- src/@ionic-native/plugins/firebase-x/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/@ionic-native/plugins/firebase-x/index.ts b/src/@ionic-native/plugins/firebase-x/index.ts index e3108769a2..ab59ce56af 100644 --- a/src/@ionic-native/plugins/firebase-x/index.ts +++ b/src/@ionic-native/plugins/firebase-x/index.ts @@ -896,6 +896,7 @@ export class FirebaseX extends IonicNativePlugin { /** * Fetches all the documents in the specific collection. * @param {string} collection - name of top-level collection to fetch. + * @param filters - filters to apply during the fetch of the documents * @param {function} success - callback function to call on successfully deleting the document. Will be passed an {object} containing all the documents in the collection, * indexed by document ID. If a Firebase collection with that name does not exist or it contains no documents, the object will be empty. * @param {function} error - callback function which will be passed a {string} error message as an argument. @@ -903,6 +904,7 @@ export class FirebaseX extends IonicNativePlugin { @Cordova() fetchFirestoreCollection( collection: string, + filters: boolean | Array>, success: (docs: any) => void, error: (err: string) => void ): Promise {