GraphQL Int by default #1117
Answered
by
MichalLytek
vasilev-alex
asked this question in
Q&A
-
According to the docs https://typegraphql.com/docs/scalars.html#aliases when you don't provide |
Beta Was this translation helpful? Give feedback.
Answered by
MichalLytek
Nov 17, 2021
Replies: 1 comment 3 replies
-
No, because |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
vasilev-alex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, because
number
in JS is a double-precision floating point number value. You need to explicitly use it + figure out some TypeScript constructs to avoid runtime issues like returning1.0000003
as record id or something 😉