Home / Companies / Firebase / Blog / Post Details
Content Deep Dive

Adding complex Firestore queries to a Jetpack Compose app

Blog post from Firebase

Post Details
Company
Date Published
Author
Marina Coelho
Word Count
1,962
Company Posts That Month
2
Language
English
Hacker News Points
-
Post removed?
No
Summary

Part ten of an Android Jetpack Compose and Firebase tutorial series expands the Make it So task app with Cloud Firestore queries and a Statistics screen. The new screen displays counts of completed tasks, important completed tasks defined as flagged or high priority, and uncompleted medium- or high-priority tasks, with a ViewModel retrieving the values through StorageService and exposing them as UI state. It demonstrates Firestore filtering with whereEqualTo, logical and and or filters, whereIn, and server-side count aggregations, which avoid transferring all matching documents to the client. The tutorial also improves task-list ordering by adding a server-generated createdAt timestamp to the Task model through @ServerTimestamp and updating the user-task query with orderBy in descending order, ensuring recently created tasks appear first.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.