Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Winterbottom committed Oct 26, 2018
2 parents c24173f + 7216bdc commit 4849070
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/resources/3_0_1/scalars/code.scalar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});

0 comments on commit 4849070

Please sign in to comment.