I want to get all data from firebase database but i dont want UID key to shown, from this code i can get data but it shows uid. I just want to display all the data with this if that's possible
useEffect(() => { var recentPostsRef = firebase.database().ref('/users'); recentPostsRef.once('value').then((snapshot) => { // snapshot.val() is the dictionary with all your keys/values from the '/store' path console.log(snapshot.val()); }); }, []); can i output this data in following manner ?
{ avatar: 'pin-1.png', firstname: 'Mahir', lastname: 'Asrani', latitude: 28.660918, longitude: 77.274468, }, { avatar: 'pin-1.png', firstname: 'name', lastname: 'name', latitude: 00.00066, longitude: 00.275550, }, 