Does firebase allows me to fetch only some params from a node ?
Example User has: id, name, email, birthday, zip_code
But I only want id and name for an specific search.
To get users list at web app I can do:
var database = firebase.database();
return firebase.database().ref('/users).once('value').then(function(snapshot) {
console.log('list de users: ');
console.log(snapshot.val());
});
But this retrieves all users params, how can I get only id and name from /users at Firebase?
Aucun commentaire:
Enregistrer un commentaire