Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CoerceArgumentValues() hasValue #1056

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions spec/Section 6 -- Execution.md
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