data-api-client icon indicating copy to clipboard operation
data-api-client copied to clipboard

Support for psql array values

Open DanielOrtel opened this issue 6 years ago • 0 comments

The Data API supports postgres arrays by returning {"arrayValue": {"<valueType>": [<value1>, <value2>]}}, but this package is returning {"<valueType>": [<value1>, <value2> ]}, meaning it's not only transforming the first level of the object. Expected result would be [<value1>, <value2>].

So far I bypassed this issue by transforming the field manually, but i'd be nice if this package supported this out of the box.

Updating these values works as expected, but fetching them does not.

DanielOrtel avatar Mar 09 '20 03:03 DanielOrtel