I'm usinig mysql with express.
Usually I get one data from db for example :
const sql = 'select * from table where id = ?'
const [rows] = db.pool.execute(sql,param)
then I need to define like this to get the result object :
let mydata = rows[0]
is there any simpler way to define 'mydata'
?