Reading the nodes from the firebase

0

I need help solving this function, I have a database where I store data. The Patients node has one child, who is their responsible nutritionist and each nutritionist has their children where I used the push method to store patient data. The patient node has two more nodes, one where I keep your personal information (profile) and the other where I keep your diets.

I need to develop a function where I show in a listView all the patients of a certain nutritionist, therefore when accessing: FirebaseDatabase.getInstance (). GetReference ("Patients"). Child (nutricionistaResponsavel)

I need to show the data of each user, remembering that for this I need to get their identifier and access the profile node. Here is an example image of my NoSql bank

I am very grateful to anyone who can help me because my system depends on this function to work.

    
asked by anonymous 06.04.2018 / 17:48

0 answers