We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's desirable to represent an ID on the server as a bigint instead of a number.
bigint
number
Currently, the ID scalar type supports serializing number to string, but not bigint.
string
I'd like to see support for serialization of bigint to string similar to number.
I think it would require changing this code
graphql-js/src/type/scalars.ts
Lines 225 to 227 in d766c8e
if (Number.isInteger(coercedValue) || typeof coercedValue == "bigint") { return String(coercedValue); }
The text was updated successfully, but these errors were encountered:
Update scalars.ts
3bb4cd4
ISSUE-:graphql#3913
This is correct, the spec supports 128-bit numbers https://spec.graphql.org/draft/#sec-ID
Sorry, something went wrong.
No branches or pull requests
It's desirable to represent an ID on the server as a
bigint
instead of anumber
.Currently, the ID scalar type supports serializing
number
tostring
, but notbigint
.I'd like to see support for serialization of
bigint
tostring
similar tonumber
.I think it would require changing this code
graphql-js/src/type/scalars.ts
Lines 225 to 227 in d766c8e
The text was updated successfully, but these errors were encountered: