From 9782b590160f3308f4b2d1c35e3398a1838acca0 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 6 Sep 2017 22:53:04 +0300 Subject: [PATCH] Fixed custom scalars inside query arguments --- src/fake_schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fake_schema.ts b/src/fake_schema.ts index 00c7039..e74efd8 100644 --- a/src/fake_schema.ts +++ b/src/fake_schema.ts @@ -71,7 +71,7 @@ export function fakeSchema(schema) { if (type instanceof GraphQLScalarType && !stdTypeNames.includes(type.name)) { type.serialize = (value => value); type.parseLiteral = astToJSON; - type.parseValue = astToJSON; + type.parseValue = (x => x); } if (type instanceof GraphQLObjectType && !type.name.startsWith('__')) addFakeProperties(type);