From 46f9105c85be9e2f5f3469794f8b2e32d67a36a1 Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 6 Nov 2018 10:21:34 -0500 Subject: [PATCH] Fixed issue with missing kind variable (#14) --- 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;