Pass argumentName, not fieldName, to type validations.

This commit is contained in:
Tobe O 2019-08-14 12:07:45 -04:00
parent 34cf2065fb
commit 2bf39a81e1
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@
* Now that variables are `InputValueContext` descendants, handle them the
same way as other values in `coerceArgumentValues`. TLDR - Removed
now-obsolete, variable-specific logic in `coerceArgumentValues`.
* Pass `argumentName`, not `fieldName`, to type validations.
# 1.0.1
* Fix a bug where `globalVariables` were not being properly passed

View file

@ -416,7 +416,7 @@ class GraphQL {
} else {
try {
var validation = argumentType.validate(
fieldName, argumentValue.value.computeValue(variableValues));
argumentName, argumentValue.value.computeValue(variableValues));
if (!validation.successful) {
var errors = <GraphQLExceptionError>[