trino-js-client
trino-js-client copied to clipboard
Converting the Output to JSON
Hello! I just started using this package and has been the easiest to connect and faster responses among the others I have tried. I have a requirement to return the Trino results in JSON format. Is there a way to add the columns to each of the results in data?
Go from this
[ [ "data1" ] ]
To this
[ { 'column1': "data1" } ]