Skip to content

Commit cda413d

Browse files
committed
update terms with recent scalar changes
1 parent 99526d5 commit cda413d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/type/validate.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,11 @@ function uncoerceDefaultValue(value: unknown, type: GraphQLInputType): unknown {
342342

343343
assertLeafType(type);
344344

345-
// For most leaf types (Scalars, Enums), result coercion ("serialize") is
345+
// For most leaf types (Scalars, Enums), output value coercion ("serialize") is
346346
// the inverse of input coercion ("parseValue") and will produce an
347347
// "external" value. Historically, this method was also used as part of the
348-
// now-removed "astFromValue" to perform the same behavior.
349-
return type.serialize(value);
348+
// now-deprecated "astFromValue" to perform the same behavior.
349+
return type.coerceOutputValue(value);
350350
}
351351

352352
function validateName(

0 commit comments

Comments
 (0)