Skip to content

Commit

Permalink
fix(firebase-x): filters for fetchFirestoreCollection (#4733)
Browse files Browse the repository at this point in the history
  • Loading branch information
UzverNumber47 committed Apr 17, 2024
1 parent 51d82f5 commit 23e6147
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/@awesome-cordova-plugins/plugins/firebase-x/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1018,13 +1018,15 @@ 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.
*/
@Cordova()
fetchFirestoreCollection(
collection: string,
filters: any[],
success: (docs: any) => void,
error: (err: string) => void
): Promise<any> {
Expand Down

0 comments on commit 23e6147

Please sign in to comment.