Lightweight record that contains fields, which map to values. In Cloud Firestore, the unit of storage is the document. Or document does not exist, Cloud Firestore creates it. Simply assign data to a document within a collection. Like strings or complex objects like lists.Ĭollections and documents are created implicitly in Cloud Firestore.
Subcollections and nested objects, both of which can include primitive fields Optimized for storing large collections of small documents.Īll documents must be stored in collections. Instead, you store data in documents, which areĮach document contains a set of key-value pairs.
Cloud Firestore is a NoSQL, document-oriented database.