Skip to content

Commit

Permalink
Merge pull request #17 from jarno-steeman/master
Browse files Browse the repository at this point in the history
Added BIGINT type to mapper
  • Loading branch information
mickhansen committed Sep 20, 2015
2 parents d1c3947 + 8b4203b commit f234525
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/typeMapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function toGraphQL(sequelizeType, sequelizeTypes) {
ENUM,
FLOAT,
INTEGER,
BIGINT,
STRING,
TEXT,
UUID,
Expand All @@ -31,7 +32,11 @@ export function toGraphQL(sequelizeType, sequelizeTypes) {

if (sequelizeType instanceof BOOLEAN) return GraphQLBoolean;
if (sequelizeType instanceof FLOAT) return GraphQLFloat;
if (sequelizeType instanceof INTEGER) return GraphQLInt;

if (sequelizeType instanceof INTEGER ||
sequelizeType instanceof BIGINT) {
return GraphQLInt;
}

if (sequelizeType instanceof STRING ||
sequelizeType instanceof TEXT ||
Expand Down

0 comments on commit f234525

Please sign in to comment.