Skip to content

Commit 07fee77

Browse files
author
Jarno Steeman
committed
add BIGINT type to mapper
1 parent d1c3947 commit 07fee77

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/typeMapper.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export function toGraphQL(sequelizeType, sequelizeTypes) {
2121
ENUM,
2222
FLOAT,
2323
INTEGER,
24+
BIGINT,
2425
STRING,
2526
TEXT,
2627
UUID,
@@ -31,7 +32,11 @@ export function toGraphQL(sequelizeType, sequelizeTypes) {
3132

3233
if (sequelizeType instanceof BOOLEAN) return GraphQLBoolean;
3334
if (sequelizeType instanceof FLOAT) return GraphQLFloat;
34-
if (sequelizeType instanceof INTEGER) return GraphQLInt;
35+
36+
if (sequelizeType instanceof INTEGER ||
37+
sequelizeType instanceof BIGINT) {
38+
return GraphQLString;
39+
}
3540

3641
if (sequelizeType instanceof STRING ||
3742
sequelizeType instanceof TEXT ||

0 commit comments

Comments
 (0)