We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 948d594 commit 70df39dCopy full SHA for 70df39d
src/graphql/utilities/coerce_input_value.py
@@ -130,8 +130,9 @@ def coerce_input_value(
130
return type_.out_type(coerced_dict)
131
132
if is_leaf_type(type_):
133
- # Scalars determine if a value is valid via `parse_value()`, which can throw to
134
- # indicate failure. If it throws, maintain a reference to the original error.
+ # Scalars and Enums determine if an input value is valid via `parse_value()`,
+ # which can throw to indicate failure. If it throws, maintain a reference
135
+ # to the original error.
136
type_ = cast(GraphQLScalarType, type_)
137
try:
138
parse_result = type_.parse_value(input_value)
0 commit comments