@@ -247,12 +247,12 @@ local function getFieldEntry(objectType, object, fields, context)
247
247
argumentMap [argument .name .value ] = argument
248
248
end
249
249
250
- local defaultValues = {}
250
+ local variablesDefaultValues = {}
251
251
if context .operation .variableDefinitions ~= nil then
252
252
for _ , value in ipairs (context .operation .variableDefinitions ) do
253
253
if value .defaultValue ~= nil then
254
254
local variableType = query_util .typeFromAST (value .type , context .schema )
255
- defaultValues [value .variable .name .value ] = util .coerceValue (value .defaultValue , variableType )
255
+ variablesDefaultValues [value .variable .name .value ] = util .coerceValue (value .defaultValue , variableType )
256
256
end
257
257
end
258
258
end
@@ -268,7 +268,7 @@ local function getFieldEntry(objectType, object, fields, context)
268
268
269
269
return util .coerceValue (supplied , argument , context .variables , {
270
270
strict_non_null = true ,
271
- defaultValues = defaultValues ,
271
+ defaultValues = variablesDefaultValues ,
272
272
})
273
273
end )
274
274
@@ -316,7 +316,7 @@ local function getFieldEntry(objectType, object, fields, context)
316
316
if argument .kind then argument = argument .kind end
317
317
return util .coerceValue (supplied , argument , context .variables , {
318
318
strict_non_null = true ,
319
- defaultValues = defaultValues ,
319
+ defaultValues = variablesDefaultValues ,
320
320
})
321
321
end )
322
322
end )
0 commit comments