Skip to content

Commit dbf90e3

Browse files
AlexGasparmickhansen
authored andcommitted
Expose and prefix JSON type to avoid conflict with other libraries (#343) (#403)
1 parent cc93df7 commit dbf90e3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ module.exports = {
55
typeMapper: require('./typeMapper'),
66
attributeFields: require('./attributeFields'),
77
simplifyAST: require('./simplifyAST'),
8-
relay: require('./relay')
8+
relay: require('./relay'),
9+
JSONType: require('./types/jsonType')
910
};

src/types/jsonType.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const astToJson = {
4141

4242

4343
const JSONType = new GraphQLScalarType({
44-
name: 'JSON',
44+
name: 'SequelizeJSON',
4545
description: 'The `JSON` scalar type represents raw JSON as values.',
4646
serialize: value => value,
4747
parseValue: value => value,

0 commit comments

Comments
 (0)