diff --git a/src/test/testAlternateMergeSchemas.ts b/src/test/testAlternateMergeSchemas.ts index 641a50a5926..6b728b5297a 100644 --- a/src/test/testAlternateMergeSchemas.ts +++ b/src/test/testAlternateMergeSchemas.ts @@ -547,12 +547,12 @@ type Property { type Query { propertyById(id: ID!): Property - properties(limit: Int = null): [Property!] + properties(limit: Int): [Property!] contextTest(key: String!): String dateTimeTest: DateTime - jsonTest(input: JSON = null): JSON - interfaceTest(kind: TestInterfaceKind = null): TestInterface - unionTest(output: String = null): TestUnion + jsonTest(input: JSON): JSON + interfaceTest(kind: TestInterfaceKind): TestInterface + unionTest(output: String): TestUnion errorTest: String errorTestNonNull: String! relay: Query! diff --git a/src/transformInputValue.ts b/src/transformInputValue.ts index f293d625c8e..26ea921753e 100644 --- a/src/transformInputValue.ts +++ b/src/transformInputValue.ts @@ -11,7 +11,7 @@ type InputValueTransformer = (type: GraphQLEnumType | GraphQLScalarType, origina export function transformInputValue(type: GraphQLInputType, value: any, transformer: InputValueTransformer) { if (value == null) { - return null; + return value; } const nullableType = getNullableType(type);