Send globalVariables explicitly to resolveFieldValue

This commit is contained in:
Tobe O 2019-08-14 00:43:19 -04:00
parent 779588e47c
commit c8f5a0931c

View file

@ -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);
}