I am making read request to my Firebase DB, but it keeps returning Promise <pending>
object. I am relatively new to coding, so I appreciate the help :) - I just want to return the value (given by the path) in JSON format.
Here is the code I'm running:
let path7 = database.ref('CheckOuts/2)');
path7.once('value').then(function(elem) {
let values = elem.val();
return values;
});