From d7ff2cbac3fbc702a3b8cdaba83ef98767f8c43d Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Thu, 9 Nov 2023 14:32:51 +0000 Subject: [PATCH] Fix CoerceArgumentValues() hasValue --- spec/Section 6 -- Execution.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/Section 6 -- Execution.md b/spec/Section 6 -- Execution.md index f357069f9..733e5be93 100644 --- a/spec/Section 6 -- Execution.md +++ b/spec/Section 6 -- Execution.md @@ -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}.