From the course: Firebase Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add reservation wrapper functions

Add reservation wrapper functions - Google Cloud Tutorial

From the course: Firebase Essential Training

Start my 1-month free trial

Add reservation wrapper functions

- [Instructor] Okay, so far the kind of querying that we've been doing, besides the fact that we're doing it from the front end, has been pretty much the same as any other type of query. In other words, we fetch the data once and that's it. However, remember that earlier, I mentioned that one of the nice things about Firestore, is that we can subscribe to changes in our Firestore data. And as it happens, this is exactly what we'll want to do with two of our resources in our application. Our reservations and the date availabilities for restaurants. In this video, we're only going to look at loading the reservations, and then in a little while, we'll come back to loading the date availabilities. Let's start off by going into our reservations folder here, and creating a new file called subscribeToReservations.js. And now, besides the fact that we're going to be subscribing to our reservations instead of just fetching them once,…

Contents