mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
fix(firebase-x): filters for fetchFirestoreCollection (#4733)
This commit is contained in:
parent
51d82f581d
commit
23e6147b25
@ -1018,6 +1018,7 @@ export class FirebaseX extends AwesomeCordovaNativePlugin {
|
|||||||
* Fetches all the documents in the specific collection.
|
* Fetches all the documents in the specific collection.
|
||||||
*
|
*
|
||||||
* @param {string} collection - name of top-level collection to fetch.
|
* @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,
|
* @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.
|
* 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.
|
* @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()
|
@Cordova()
|
||||||
fetchFirestoreCollection(
|
fetchFirestoreCollection(
|
||||||
collection: string,
|
collection: string,
|
||||||
|
filters: any[],
|
||||||
success: (docs: any) => void,
|
success: (docs: any) => void,
|
||||||
error: (err: string) => void
|
error: (err: string) => void
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
|
Loading…
Reference in New Issue
Block a user