You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Firestore is Google Cloud's fully managed, serverless, document-oriented NoSQL database. It is the successor to the original Cloud Datastore and is designed for building web, mobile, and server applications that need real-time synchronisation, offline support, and automatic scaling to zero.
Firestore is a flexible, scalable NoSQL document database that provides:
graph TD
A["users (collection)"] --> B["user-123 (document)"]
B --> C["name: Alice"]
B --> D["email: alice@example.com"]
B --> E["orders (subcollection)"]
E --> F["order-001 (document)"]
F --> G["product: Widget"]
F --> H["quantity: 3"]
F --> I["total: 29.97"]
Firestore supports strings, numbers, booleans, dates, geopoints, arrays, maps (nested objects), references (pointers to other documents), and null values.
Firestore provides rich querying capabilities:
Firestore automatically creates single-field indexes for every field. For queries with multiple filters or ordering, you create composite indexes. Firestore will tell you when a composite index is needed and provide a link to create it.
One of Firestore's most powerful features is real-time synchronisation:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.