Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add filters option to fetchFirestoreCollection #1

Open
wants to merge 1 commit into
base: feat/add-missing-methods-firebasex-plugin
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/@ionic-native/plugins/firebase-x/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -896,13 +896,15 @@ 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.
*/
@Cordova()
fetchFirestoreCollection(
collection: string,
filters: boolean | Array<Array<any>>,
success: (docs: any) => void,
error: (err: string) => void
): Promise<any> {
Expand Down