diff --git a/src/resources/3_0_1/scalars/code.scalar.js b/src/resources/3_0_1/scalars/code.scalar.js index 6940db92..0050c94f 100644 --- a/src/resources/3_0_1/scalars/code.scalar.js +++ b/src/resources/3_0_1/scalars/code.scalar.js @@ -19,6 +19,8 @@ module.exports = new GraphQLScalarType({ // TODO: Implement proper parsing and sanitization here parseLiteral: ast => { let { value } = ast; - return parseValue(value, ast); + return kind === Kind.STRING + ? value + : undefined; } });