This is my code
firebase.database().ref().child('Users').orderByChild('interest').
startAt('cat').endAt('cat'+'\uf8ff').
on('value',snap=>{
console.log(snap.val())
})
my code is that way but result is return null , How can I access data?
This is my code
firebase.database().ref().child('Users').orderByChild('interest').
startAt('cat').endAt('cat'+'\uf8ff').
on('value',snap=>{
console.log(snap.val())
})
my code is that way but result is return null , How can I access data?
get methods:
getUsers() {
firebase.database().ref('Users')
.once('value')
.then(snapshot => snapshot.val())
.then(users => console.log(users));
}