@@ -35,7 +35,7 @@ export interface VariableValues {
3535
3636interface VariableValueSource {
3737 readonly signature : GraphQLVariableSignature ;
38- readonly value : unknown ;
38+ readonly value ? : unknown ;
3939}
4040
4141type VariableValuesOrErrors =
@@ -104,10 +104,7 @@ function coerceVariableValues(
104104 if ( ! Object . hasOwn ( inputs , varName ) ) {
105105 const defaultValue = varSignature . defaultValue ;
106106 if ( defaultValue ) {
107- sources [ varName ] = {
108- signature : varSignature ,
109- value : undefined ,
110- } ;
107+ sources [ varName ] = { signature : varSignature } ;
111108 coerced [ varName ] = coerceDefaultValue ( defaultValue , varType ) ;
112109 } else if ( isNonNullType ( varType ) ) {
113110 const varTypeStr = inspect ( varType ) ;
@@ -118,10 +115,7 @@ function coerceVariableValues(
118115 ) ,
119116 ) ;
120117 } else {
121- sources [ varName ] = {
122- signature : varSignature ,
123- value : undefined ,
124- } ;
118+ sources [ varName ] = { signature : varSignature } ;
125119 }
126120 continue ;
127121 }
@@ -244,7 +238,9 @@ export function experimentalGetArgumentValues(
244238
245239 if ( valueNode . kind === Kind . VARIABLE ) {
246240 const variableName = valueNode . name . value ;
247- const scopedVariableValues = fragmentVariablesValues ?. sources [ variableName ]
241+ const scopedVariableValues = fragmentVariablesValues ?. sources [
242+ variableName
243+ ]
248244 ? fragmentVariablesValues
249245 : variableValues ;
250246 if (
0 commit comments