From 502ac7788c499bdbe71eea8fba4e9a3753a5ac3e Mon Sep 17 00:00:00 2001 From: Luis Cazacu Date: Mon, 22 Mar 2021 19:07:45 +0200 Subject: [PATCH] allow passing null values to custom neo4j procedures --- src/augment/input-values.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/augment/input-values.js b/src/augment/input-values.js index b87bb416..3cc1bafa 100644 --- a/src/augment/input-values.js +++ b/src/augment/input-values.js @@ -629,7 +629,7 @@ export const analyzeMutationArguments = ({ const unwrappedType = unwrapNamedType({ type }); const typeName = unwrappedType[TypeWrappers.NAME]; let argumentValue = serialized[name]; - if (argumentValue !== undefined) { + if (argumentValue !== undefined && argumentValue !== null) { const schemaType = schema.getType(typeName); if (isInputObjectType(schemaType)) { const fieldMap = schemaType.getFields();