How do I output the value of a node? I tried
let item = firebase.database().ref('maps/').child('redzone');
console.log(item.toJSON());
and
let item = firebase.database().ref('maps/').child('redzone');
console.log(JSON.stringify(item.toJSON()));
but every time I just get the firebase URL, not the actual object. How do I read it?