We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bcb23f3 + d0f917a commit bfa4ca0Copy full SHA for bfa4ca0
src/date.js
@@ -14,7 +14,7 @@ module.exports = new GraphQLScalarType({
14
},
15
parseLiteral(ast) {
16
if (ast.kind === Kind.INT) {
17
- return parseInt(ast.value, 10);
+ return new Date(parseInt(ast.value, 10));
18
}
19
return null;
20
0 commit comments