Skip to content

Commit

Permalink
update terms with recent scalar changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Oct 27, 2024
1 parent 99526d5 commit cda413d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/type/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cda413d

Please sign in to comment.