Assigning query result to a variable

Thank you Anthony.
I’ve tried it, but I receive an error. :frowning:
‘Top-level ‘await’ expressions are only allowed when the ‘module’ option is set to ‘esnext’ or ‘system’, and the ‘target’ option is set to ‘es2017’ or higher.
Parsing error: Cannot use keyword ‘await’ outside an async function’