Skip to content

Commit 3bb4cd4

Browse files
authored
Update scalars.ts
ISSUE-:graphql#3913
1 parent 7a6d055 commit 3bb4cd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/type/scalars.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ export const GraphQLID = new GraphQLScalarType<string>({
222222
if (typeof coercedValue === 'string') {
223223
return coercedValue;
224224
}
225-
if (Number.isInteger(coercedValue)) {
226-
return String(coercedValue);
225+
if (Number.isInteger(coercedValue) || typeof coercedValue == "bigint") {
226+
return String(coercedValue);
227227
}
228228
throw new GraphQLError(
229229
`ID cannot represent value: ${inspect(outputValue)}`,

0 commit comments

Comments
 (0)