Postgres numeric
type should be a string in Json Output
#2596
Answered
by
wolfgangwalther
johanneskares
asked this question in
Q&A
-
Environment
Description of issueWhen querying a Postgrest
After using JSON.parse in Javascript I get, so precision is lost. Other javascript libraries that are able to parse large numbers are quite inefficient.
I think it would make sense to return a string instead, like.
Related Issue: supabase/cli#582 |
Beta Was this translation helpful? Give feedback.
Answered by
wolfgangwalther
Dec 22, 2022
Replies: 1 comment 2 replies
-
I think you should cast your column to text either in a view or in the query: https://postgrest.org/en/stable/api.html#casting-columns. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
wolfgangwalther
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you should cast your column to text either in a view or in the query: https://postgrest.org/en/stable/api.html#casting-columns.