I am writing data to Firebase using the following code:
firebase.database().ref('cards/1').set({
val:1
});
I then retrieve the data using the following code:
firebase.database().ref('cards/1').once('value').then(function(snapshot) {
console.info('Getting value from database:')
console.info(snapshot)
})
The code above works fine and is displaying correct result. However firebase console is not reflecting the update. I even tried logging out and back in. What am I doing wrong?
Didn't work for me either.
But to get latest logs, run this command in your terminal:
firebase functions:log
You can see the updated logs.