I want to use async await because I find it much more convenient than then method. But when I do I get this error:
const onceGetUsers = async () => await db.ref("users").once("value");
let users = await db.onceGetUsers(); // Syntax error: await is a reserved word
console.log(users);
Thx