Skip to content

Commit 6f7541f

Browse files
committed
Fix CoerceArgumentValues() hasValue
1 parent df1acea commit 6f7541f

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
@@ -609,17 +609,17 @@ CoerceArgumentValues(objectType, field, variableValues):
609609
- Let {argumentName} be the name of {argumentDefinition}.
610610
- Let {argumentType} be the expected type of {argumentDefinition}.
611611
- Let {defaultValue} be the default value for {argumentDefinition}.
612-
- Let {hasValue} be {true} if {argumentValues} provides a value for the name
613-
{argumentName}.
614612
- Let {argumentValue} be the value provided in {argumentValues} for the name
615613
{argumentName}.
616614
- If {argumentValue} is a {Variable}:
617615
- Let {variableName} be the name of {argumentValue}.
618-
- Let {hasValue} be {true} if {variableValues} provides a value for the name
619-
{variableName}.
620-
- Let {value} be the value provided in {variableValues} for the name
621-
{variableName}.
622-
- Otherwise, let {value} be {argumentValue}.
616+
- If {variableValues} provides a value for the name {variableName}:
617+
- Let {hasValue} be {true}.
618+
- Let {value} be the value provided in {variableValues} for the name
619+
{variableName}.
620+
- Otherwise if {argumentValues} provides a value for the name {argumentName}.
621+
- Let {hasValue} be {true}
622+
- Let {value} be {argumentValue}.
623623
- If {hasValue} is not {true} and {defaultValue} exists (including {null}):
624624
- Add an entry to {coercedValues} named {argumentName} with the value
625625
{defaultValue}.

0 commit comments

Comments
 (0)