Replies: 1 comment 1 reply
-
@pbackx Would you create a failing test in the repo? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the JSON scalar to return data that I can't predict the exact content. This seems to work fine, except with some numbers.
Trying to return the following object fails the converstion to JSON:
{"IBASE":1.6225927682921336e+32}
This fails with error
Cannot convert 1.6225927682921336e+32 to a BigInt
which is correct.However, is there a way I can influence the conversion so that it will use a float? I don't mind the possible loss of precision. Even conversion to string would be fine.
Is there an option to do this in a generic way, because I have no control over the input data (today, the issue may be with the
IBASE
field, but tomorrow it could be any other field)Beta Was this translation helpful? Give feedback.
All reactions