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

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…

Contents