From 8527780bdf297739554bddc75b28bc799dc5350c Mon Sep 17 00:00:00 2001 From: Robert Winterbottom Date: Tue, 6 Nov 2018 06:25:43 -0500 Subject: [PATCH] Fixed issue with missing kind variable --- src/resources/3_0_1/scalars/code.scalar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/3_0_1/scalars/code.scalar.js b/src/resources/3_0_1/scalars/code.scalar.js index 0050c94f..e1d26a7a 100644 --- a/src/resources/3_0_1/scalars/code.scalar.js +++ b/src/resources/3_0_1/scalars/code.scalar.js @@ -18,7 +18,7 @@ module.exports = new GraphQLScalarType({ }, // TODO: Implement proper parsing and sanitization here parseLiteral: ast => { - let { value } = ast; + let { kind, value } = ast; return kind === Kind.STRING ? value : undefined;