Open sb2050 opened 3 years ago
There are two ways you can go about this:
a) query "nested" objects, this will result in
[{
tabel1: {
id: 123,
group: 'xyz",
...
},
tabel2: {
id: 234,
group: 'zyx",
...
},
},
...
]
You can achieve this by passing options that contain nestTables: true
.
b) Query results as array. This way you will get the result, well, as an array of values instead of a JSON object. I don't have the option name handy but a search in the docs should find it.
If I have duplicate column names they will be overwritten. Is there a solution for this? For example. That with the column names duplicate results table names with indicates.
output:
output expected: image
database: