Appreciating that firebase has added support for promises, is there a way to run a query like the following inside of an async
function?:
const eventref = this.db.ref('cats/whiskers');
const value = await eventref.once('value')
Running the above returns a promise for value
, I'm hoping to get the json blob that is stored at cats/whiskers
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…