You may notice that documents look a lot like JSON. Structure the user's name from the example above with a map, like this: You can also useĪrrays or nested objects, called maps, to structure data within a document.Ĭomplex, nested objects in a document are called maps. Note: Cloud Firestore supports a variety of data types for values:īoolean, number, string, geo point, binary blob, and timestamp. Each document isĪ document representing a user alovelace might look like this:įirst : "Ada" last : "Lovelace" born : 1815 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |