Skip to content

Commit

Permalink
fix(core): loosely deserialize args
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sa authored Jan 18, 2024
1 parent 0b6dad0 commit 266dd9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lib/types-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ export class TypesBuilder {
);

return async (parent, _args, context) => {
const args = deserializeArgs(_args) as Record<string, unknown>; // might return undefined ?
const args = deserializeArgs(_args, { loosely: false }) as Record<string, unknown>;
const argsValidationErrors = validateArgs(args);
if (argsValidationErrors.length) {
const originalError = new ValidationError(argsValidationErrors);
Expand Down

0 comments on commit 266dd9b

Please sign in to comment.