Open
Description
It's desirable to represent an ID on the server as a bigint
instead of a number
.
Currently, the ID scalar type supports serializing number
to string
, but not bigint
.
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);
}
Metadata
Metadata
Assignees
Labels
No labels