I want to foreach an array to show on the screen. This array is the data from a database table.
The code to get this data:
const { getConnection } = require('./database');
async function getUsers() {
const conn = getConnection();
var usuarios = (await conn).query('SELECT * FROM user');
console.log(usuarios)
}
But this variable comes this way:
And I'm not able to select that array (_rejectionHandler0)
