From d1d889aa137b3a686e2e62b944ccf058715e891c Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Sun, 27 Oct 2024 21:20:54 +0200 Subject: [PATCH] update terms with recent scalar changes --- src/type/validate.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/type/validate.ts b/src/type/validate.ts index 9c31094949..48cc70299a 100644 --- a/src/type/validate.ts +++ b/src/type/validate.ts @@ -342,11 +342,11 @@ function uncoerceDefaultValue(value: unknown, type: GraphQLInputType): unknown { assertLeafType(type); - // For most leaf types (Scalars, Enums), result coercion ("serialize") is + // For most leaf types (Scalars, Enums), output value coercion ("serialize") is // the inverse of input coercion ("parseValue") and will produce an // "external" value. Historically, this method was also used as part of the - // now-removed "astFromValue" to perform the same behavior. - return type.serialize(value); + // now-deprecated "astFromValue" to perform the same behavior. + return type.coerceOutputValue(value); } function validateName(