Firebase database structure


#1

I’m trying to make an application using ionic 2 and I want to implement the database now. The problem is the app will have multiple user and if they for example enter their name into the firebase database how would I can list the specific data for that related to that user only.

My first node would have the userAuth second node is their preventer inhaler table and the third one is their reliever inhaler. How would I fetch the specific nodes that is belonging to the user only?

Thank you!


#2

I would suggest to use the helpful AngularFire 2 library which also has pretty good documentation (scroll down to the end of the readme part) about how to query Firebase.