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 user wrapper functions

Add user wrapper functions - Google Cloud Tutorial

From the course: Firebase Essential Training

Start my 1-month free trial

Add user wrapper functions

- [Instructor] Okay, so we have our Firestore database populated with some data that our front end application can use. Now we're going to start implementing the actual front end logic for querying this data. Previously, we saw what Firestore queries looked like and a few of the details behind how they work. Well, now we're going to actually put these queries in action. What we're going to do now is the same sort of thing that we did with Firebase Auth. We're going to create wrapper functions for all the important operations and queries that the rest of our app will need. The first thing we're going to do is create some wrapper functions for loading user info. So we'll start off by creating two files in our user directory. You'll see what these are for in a second. The first one will be called getUserInfo.js. And the second one will be called getCurrentUserinfo.js. So starting off with our getUserInfo wrapper function,…

Contents