MySQL Forums
Forum List  »  Connector/Node.js

await in NodeJs
Posted by: Max Six
Date: September 12, 2020 07:08AM

Hi everyone
I'm building a api appllication with MySql and Nodejs but NodeJs work in non-blocking mode so I need use this syntax:

const results = await connection.query('select * from table);

But the il value of results variable is a Query object and not contain the results of query

Someone can help me?

Options: ReplyQuote

Written By
await in NodeJs
September 12, 2020 07:08AM
September 18, 2020 03:53AM
September 18, 2020 08:30AM
September 19, 2020 10:41AM
December 22, 2020 05:29AM
December 23, 2020 06:47AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.