We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a6d055 commit 3bb4cd4Copy full SHA for 3bb4cd4
src/type/scalars.ts
@@ -222,8 +222,8 @@ export const GraphQLID = new GraphQLScalarType<string>({
222
if (typeof coercedValue === 'string') {
223
return coercedValue;
224
}
225
- if (Number.isInteger(coercedValue)) {
226
- return String(coercedValue);
+ if (Number.isInteger(coercedValue) || typeof coercedValue == "bigint") {
+ return String(coercedValue);
227
228
throw new GraphQLError(
229
`ID cannot represent value: ${inspect(outputValue)}`,
0 commit comments