Cloud Firestore is one of the most powerful and sophisticated online databases in the world.
It is a document database.It stores your data in a tree-like structure, similar to a Real time Database but everything is placed into documents and collections.
You can think of a document as a JavaScript object. It has key-value pairs which are referred to as fields, and the values of these fields can be any number of things, from strings to numbers to binary values and maps.
Documents collected together form Collections.
1.These collections can only contain documents.
2.Documents can't contain other documents but they can point to sub-collections. In this type of data structure, when you grab data from a document, you will only grab that document and not any other documents contained in any of the sub-collections.
3.The root of your database can only consist of collections.
Just like the Real time database, Cloud Firestore implementation contains a set of security rules that determine whether or not a certain action is permitted.
Just like the Real time database, Cloud Firestore allows you to listen to changes in the database and update my app in real time.
Cloud Firestore makes your app run as speedy as possible, by notifying you of the changes happening locally as if they had happened on the server. In the mean time it is still going ahead and updating that data remotely in the background.
Top comments (0)