I used the following code block to fetch only a row of data;
db.database.ref('/User/').orderByChild('uID').equalTo(this.uID).once('value', (snapshot) => {
console.log(snapshot.val());
})
Here is the output;
But if I wanted to get email value like this;
db.database.ref('/User/').orderByChild('uID').equalTo(this.uID).once('value', (snapshot) => {
console.log(snapshot.val().email);
})
It says this value is undefined.