jeremydaly / data-api-client

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

Decimal columns are received as strings #74

Open idanlo opened 3 years ago

idanlo commented 3 years ago

Hey there! Loving the library so far, much more comfortable than handling with the aws-sdk version.

When I'm selecting from a table fields that are of type DECIMAL, they are received as strings, is there a way to hydrate these to numbers? Like you are doing with dates.

Thank you!

kurtfurbush commented 3 years ago

Not a solution for the actual problem whatsoever but I just ran into this and realized I didn't need to be using full DECIMAL. FLOAT and DOUBLE hydrate as expected (numerical). Just leaving here in case someone else is searching.