Background
I'm making a simple website with node and typescript. I installed MySQL module to communicate with a database.
Problem
I'm trying to get data from DB, but I don't know how to determine what type the result should have. For example,
const sql = `SELECT metaValue FROM ${this.table} WHERE metaKey = '${key}'`;
const result = await this.pool.query(sql);
console.log(result);
in this case, the result is [ RowDataPacket { metaValue: 'map-79.jpg' } ]. How can I get map-79.jpg from the result? What type the result should be?