Skip to content

Commit f234525

Browse files
committed
Merge pull request #17 from jarno-steeman/master
Added BIGINT type to mapper
2 parents d1c3947 + 8b4203b commit f234525

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 GraphQLInt;
39+
}
3540

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

0 commit comments

Comments
 (0)