From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Learn to read data from a collection
From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase
Learn to read data from a collection
- [Instructor] Now, we want to read from the collection, so the data that we have stored in the database. So, we had made a first test at the beginning, very beginning, that we're going to delete because it's not going to be of this shape. We're going to go ahead and select from the right, delete document and then click, start delete. Here we go, we're going to keep this one. So that's going to be of this type. We're going to get data of type, date and time and also the information of the path and then a title for the image. So let's go to the documentation and find the sections to learn to read data and then get data. So first what we want to do is to call on methods to get the data once and then we want to set a listener to receive data change events. So that's not, but this is optional. So instead, what we're going to do is very simple. We're going to get first this method, available from the same SDK. Then we're…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
Get started with the Cloud Firestore3m
-
(Locked)
Learn to add and manage data5m
-
(Locked)
Set a new document and store and sync data into the Cloud Firestore5m 53s
-
(Locked)
Learn to read data from a collection5m 32s
-
(Locked)
Get documents and display them in the app5m 18s
-
(Locked)
Define React environment variables4m 39s
-
-
-
-
-
-
-