Skip to content

Commit

Permalink
Fixed custom scalars inside query arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Sep 6, 2017
1 parent 895a5b3 commit 9782b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fake_schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9782b59

Please sign in to comment.