I am trying to convert the response after running knex queries into json so I can individual result
knex.raw("SELECT SUM(`someColumn`) FROM `collection`")
.then(res => res.json())
I logged the result It looks like this
[ RowDataPacket {
'SUM(`someColumn`)': 23231 }
]
wOR how do I get a directly total result?