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.

Firestore query basics

Firestore query basics - Google Cloud Tutorial

From the course: Firebase Essential Training

Start my 1-month free trial

Firestore query basics

- [Instructor] Okay, so now that we've learned a little bit more about what firestore is, it's time to take a look at how to write basic firestore queries. This will help us later on when we start adding firestore to our front end. To start, as I've already mentioned, we're allowed to make firestore queries directly from inside our front end application. And this can be very nice, since it allows us to bypass all the logic for making network requests well on the surface anyway, the first thing we're going to need to do in any file where we want to do this is import Firebase, and then get a reference to our fire store instance by calling the firestore function on Firebase. This is pretty similar to what we did with Firebase off. Now once we've done this, we're free to make queries. As I mentioned, data in firestore is organized in terms of collections and documents. So where we usually start off when making firestore…

Contents