You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, is it possible to return an array of arrays rather than an array of objects? It doesn't appear this functionality is officially supported. Is there a slight hack that I could implement myself to achieve this?
Second, how are the column names added? Does the query actually return the column names for every single row, or does the query simply return the headers once and this library duplicates them while constructing the object for each row?
Thanks!
EDIT: To clarify about the "slight hack" comment, I realize I can do something like rows.map(row => row.column) but I was trying to avoid the slight overhead of constructing the array of objects in the first place only to map it back to an array.
The text was updated successfully, but these errors were encountered:
Second, how are the column names added? Does the query actually return the column names for every single row, or does the query simply return the headers once and this library duplicates them while constructing the object for each row?
This is half feature request / half question.
First, is it possible to return an array of arrays rather than an array of objects? It doesn't appear this functionality is officially supported. Is there a slight hack that I could implement myself to achieve this?
Second, how are the column names added? Does the query actually return the column names for every single row, or does the query simply return the headers once and this library duplicates them while constructing the object for each row?
Thanks!
EDIT: To clarify about the "slight hack" comment, I realize I can do something like
rows.map(row => row.column)
but I was trying to avoid the slight overhead of constructing the array of objects in the first place only to map it back to an array.The text was updated successfully, but these errors were encountered: