Executing the following code block:async function runSQL(statement) {const result = await pool.query(statement);console.log("runSQL:" + result);return result;}where "statement" is "select * from certain_table" (certain_table has 3 rows/entries), results in obtaining the output:runSQL:[object Object],[object Object],[object Object]The desired output would be the contents of the table:[{"1":"Name1"},{"2":"Name2"},{"3":"Name3"}]What am I doing wrong?
Submitted May 19, 2020 at 06:05PM by Jef_Albertson
No comments:
Post a Comment