Skip to content

Commit d7ff2cb

Browse files
committed
Fix CoerceArgumentValues() hasValue
1 parent 3adfcca commit d7ff2cb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/Section 6 -- Execution.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -603,17 +603,17 @@ CoerceArgumentValues(objectType, field, variableValues):
603603
- Let {argumentName} be the name of {argumentDefinition}.
604604
- Let {argumentType} be the expected type of {argumentDefinition}.
605605
- Let {defaultValue} be the default value for {argumentDefinition}.
606-
- Let {hasValue} be {true} if {argumentValues} provides a value for the name
607-
{argumentName}.
608606
- Let {argumentValue} be the value provided in {argumentValues} for the name
609607
{argumentName}.
610608
- If {argumentValue} is a {Variable}:
611609
- Let {variableName} be the name of {argumentValue}.
612-
- Let {hasValue} be {true} if {variableValues} provides a value for the name
613-
{variableName}.
614-
- Let {value} be the value provided in {variableValues} for the name
615-
{variableName}.
616-
- Otherwise, let {value} be {argumentValue}.
610+
- If {variableValues} provides a value for the name {variableName}:
611+
- Let {hasValue} be {true}.
612+
- Let {value} be the value provided in {variableValues} for the name
613+
{variableName}.
614+
- Otherwise if {argumentValues} provides a value for the name {argumentName}.
615+
- Let {hasValue} be {true}
616+
- Let {value} be {argumentValue}.
617617
- If {hasValue} is not {true} and {defaultValue} exists (including {null}):
618618
- Add an entry to {coercedValues} named {argumentName} with the value
619619
{defaultValue}.

0 commit comments

Comments
 (0)