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 [Query].[count()] to [FireStore] for [Android/IOS] #699

Open
baseemomar opened this issue Jan 25, 2025 · 2 comments
Open

Add [Query].[count()] to [FireStore] for [Android/IOS] #699

baseemomar opened this issue Jan 25, 2025 · 2 comments
Labels
API coverage Request for missing APIs

Comments

@baseemomar
Copy link

Add support for thecount()function in Query to retrieve the count of documents matching a query without fetching the entire data. This will return an AggregateQuery which can be executed using get(AggregateSource). This feature significantly reduces network usage and Firestore read costs, especially for large datasets.

@baseemomar baseemomar added the API coverage Request for missing APIs label Jan 25, 2025
@chris-hatton
Copy link

chris-hatton commented Feb 11, 2025

This is also the only functionality that's keeping my team from removing a direct KMP Cocoapods dependency on Firebase, which really slows down Kotlin builds. count() will be a welcome addition to the wrapping.

@chris-hatton
Copy link

Duplicate of #657

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API coverage Request for missing APIs
Projects
None yet
Development

No branches or pull requests

2 participants