jeremydaly / data-api-client

A "DocumentClient" for the Amazon Aurora Serverless Data API
MIT License
446 stars 63 forks source link

Support for psql array values #42

Open DanielOrtel opened 4 years ago

DanielOrtel commented 4 years ago

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.