Send globalVariables explicitly to resolveFieldValue
This commit is contained in:
parent
779588e47c
commit
c8f5a0931c
1 changed files with 4 additions and 1 deletions
|
@ -374,7 +374,10 @@ class GraphQL {
|
|||
var argumentValues =
|
||||
coerceArgumentValues(objectType, field, variableValues);
|
||||
var resolvedValue = await resolveFieldValue(
|
||||
objectType, objectValue, fieldName, argumentValues);
|
||||
objectType,
|
||||
objectValue,
|
||||
fieldName,
|
||||
Map<String, dynamic>.from(globalVariables)..addAll(argumentValues));
|
||||
return completeValue(document, fieldName, fieldType, fields, resolvedValue,
|
||||
variableValues, globalVariables);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue