Convert RowDataPacket to JSON or array and access it in Mysql using Node JS

preview_player
Показать описание
How to convert row data packet object to JSON or array and access it in Mysql using Node JS is shown
Рекомендации по теме
Комментарии
Автор

{recordsets: Array(1), recordset: Array(5), output: {…}, rowsAffected: Array(0)}
output
:
[[Prototype]]
:
Object
recordset
:
Array(5)
0
:
{id: 67, PortfolioName: 'Platforms'}
1
:
{id: 68, PortfolioName: 'Applications'}
2
:
{id: 69, PortfolioName: 'Devices'}
3
:
{id: 70, PortfolioName: 'Third-party'}
4
:
{id: 71, PortfolioName: 'Solutions'}
length
:
5
[[Prototype]]
:
Array(0)
recordsets
:
[Array(5)]
rowsAffected
:
[]
[[Prototype]]
:
Object . how to convert this to json or array format .please help me

manasahr