trino-js-client icon indicating copy to clipboard operation
trino-js-client copied to clipboard

Converting the Output to JSON

Open matton2 opened this issue 4 months ago • 1 comments

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" } ]

matton2 avatar Feb 09 '24 21:02 matton2