Firestore basics for managing data
-
Adding data
Write data to Firestore.
-
Deleting data
Delete documents and collections in Firestore.
-
Transactions and batch writes
Read and update more than one document as an atomic operation.
-
Enabling offline data
Persist data when the user's device is offline.
-
Exporting and importing data
How to export and import Firestore documents using the managed export and import service.
-
Moving data between projects
How to use the managed import and export features to move Firestore data from one project to another.
Firestore queries
-
Getting data
Read one or more documents from a Firestore database.
-
Getting realtime updates
Listen to document changes and get updates.
-
Querying and filtering data
Filter the results of a query.
-
Ordering and limiting data
Sort and limit the results of a query.
-
Paginating data with query cursors
Batch and paginate query results with query cursors.
-
Managing indexes
Create indexes for new queries in Firestore.
Securing data for mobile/web clients
-
Getting started with security rules
Learn how Firestore Security Rules work.
-
Structuring security security rules
How to structure your Firestore Security Rules.
-
Writing conditions for security rules
How to write conditions for your Firestore Security Rules.
-
Securely querying data
How to combine queries and Firestore Security Rules.
-
Fixing insecure rules
Review and resolve common pitfalls that lead to security vulnerabilities in Firestore.
-
Testing security rules
Test rules for Firestore with a locally run emulator.
-
Securing data access for users and groups
How to implement document access control in Firestore.
Securing data for server clients
Solutions for advanced use cases
-
Extending Firestore with Cloud Functions
How to handle events triggered from Firestore.
-
Aggregation queries
How to query for aggregate data in Firestore.
-
Distributed counters
How to use distributed counters in Firestore.
-
Full text search
How to implement full text search in Firestore.
-
Building presence
How to build presence, or user availability, in Firestore.
-
Deleting collections and subcollections
How to delete whole collections and subcollections in Firestore.
-
Sharded timestamps
How to use the sharded timestamp technique in collections with high write rates and that contain documents with timestamps.
-
Using the Firestore REST API
How to use the REST API to make calls to Firestore.
-
Scheduling data exports
How to schedule exports of your Firestore data using Cloud Functions and Cloud Scheduler.
-
Automating database creation
How to programmatically create a Firestore database.