From 266dd9bca8ae43eb0cb9b1e2a991083a8b3a7978 Mon Sep 17 00:00:00 2001 From: "Marcus S. Abildskov" <8391194+marcus-sa@users.noreply.github.com> Date: Thu, 18 Jan 2024 11:41:04 +0100 Subject: [PATCH] fix(core): loosely deserialize args --- packages/core/src/lib/types-builder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/lib/types-builder.ts b/packages/core/src/lib/types-builder.ts index 44da77a..7979b44 100644 --- a/packages/core/src/lib/types-builder.ts +++ b/packages/core/src/lib/types-builder.ts @@ -662,7 +662,7 @@ export class TypesBuilder { ); return async (parent, _args, context) => { - const args = deserializeArgs(_args) as Record; // might return undefined ? + const args = deserializeArgs(_args, { loosely: false }) as Record; const argsValidationErrors = validateArgs(args); if (argsValidationErrors.length) { const originalError = new ValidationError(argsValidationErrors);