Skip to content

Commit

Permalink
rebase & add the getCountFromServer method
Browse files Browse the repository at this point in the history
  • Loading branch information
mamillastre committed Jan 9, 2025
1 parent d8d1ea1 commit 5e4ca01
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/firestore/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import type {
GetCollectionGroupResult,
GetCollectionOptions,
GetCollectionResult,
GetCountFromServerOptions,
GetCountFromServerResult,
GetDocumentOptions,
GetDocumentResult,
RemoveSnapshotListenerOptions,
Expand Down Expand Up @@ -75,6 +77,11 @@ export class FirebaseFirestoreClient implements FirebaseFirestorePlugin {
): Promise<GetCollectionGroupResult<T>> {
return parseResult(await this.plugin.getCollectionGroup<T>(options));
}
getCountFromServer(
options: GetCountFromServerOptions,
): Promise<GetCountFromServerResult> {
return this.plugin.getCountFromServer(options);
}
clearPersistence(): Promise<void> {
return this.plugin.clearPersistence();
}
Expand Down

0 comments on commit 5e4ca01

Please sign in to comment.