Skip to content

Commit

Permalink
Fix CoerceArgumentValues() hasValue
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Nov 9, 2023
1 parent 3adfcca commit d7ff2cb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/Section 6 -- Execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -603,17 +603,17 @@ CoerceArgumentValues(objectType, field, variableValues):
- Let {argumentName} be the name of {argumentDefinition}.
- Let {argumentType} be the expected type of {argumentDefinition}.
- Let {defaultValue} be the default value for {argumentDefinition}.
- Let {hasValue} be {true} if {argumentValues} provides a value for the name
{argumentName}.
- Let {argumentValue} be the value provided in {argumentValues} for the name
{argumentName}.
- If {argumentValue} is a {Variable}:
- Let {variableName} be the name of {argumentValue}.
- Let {hasValue} be {true} if {variableValues} provides a value for the name
{variableName}.
- Let {value} be the value provided in {variableValues} for the name
{variableName}.
- Otherwise, let {value} be {argumentValue}.
- If {variableValues} provides a value for the name {variableName}:
- Let {hasValue} be {true}.
- Let {value} be the value provided in {variableValues} for the name
{variableName}.
- Otherwise if {argumentValues} provides a value for the name {argumentName}.
- Let {hasValue} be {true}
- Let {value} be {argumentValue}.
- If {hasValue} is not {true} and {defaultValue} exists (including {null}):
- Add an entry to {coercedValues} named {argumentName} with the value
{defaultValue}.
Expand Down

0 comments on commit d7ff2cb

Please sign in to comment.