fix(firebase-x): filters for fetchFirestoreCollection (#4733)

This commit is contained in:
UzverNumber47 2024-04-17 11:29:27 +02:00 committed by GitHub
parent 51d82f581d
commit 23e6147b25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1018,6 +1018,7 @@ export class FirebaseX extends AwesomeCordovaNativePlugin {
* Fetches all the documents in the specific collection.
*
* @param {string} collection - name of top-level collection to fetch.
* @param {Array} filters - filters to apply to collection.
* @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.
@ -1025,6 +1026,7 @@ export class FirebaseX extends AwesomeCordovaNativePlugin {
@Cordova()
fetchFirestoreCollection(
collection: string,
filters: any[],
success: (docs: any) => void,
error: (err: string) => void
): Promise<any> {