Skip to content

Commit

Permalink
fix(graphql): fix UUID type with pgExtendedTypes (#67)
Browse files Browse the repository at this point in the history
Fix UUID type with `pgExtendedTypes`
  • Loading branch information
benjie committed Sep 12, 2017
1 parent 869dd95 commit 02e8868
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/graphile-build-pg/src/plugins/PgTypesPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export default (function PgTypesPlugin(
pgSql: sql,
} = build;

const GraphQLUUID = getTypeByName("UUID");
const gqlTypeByTypeId = Object.assign({}, build.pgGqlTypeByTypeId);
const gqlInputTypeByTypeId = Object.assign(
{},
Expand Down Expand Up @@ -292,13 +291,13 @@ export default (function PgTypesPlugin(
pgExtendedTypes && {
"114": GraphQLJSON,
"3802": GraphQLJSON,
"2950": GraphQLUUID,
/*
'1082': GraphQLDate, // date
'1114': GraphQLDateTime, // timestamp
'1184': GraphQLDateTime, // timestamptz
'1083': GraphQLTime, // time
'1266': GraphQLTime, // timetz
'2950': GraphQLUUID,
*/
}
);
Expand Down

0 comments on commit 02e8868

Please sign in to comment.