Pass argumentName
, not fieldName
, to type validations.
This commit is contained in:
parent
34cf2065fb
commit
2bf39a81e1
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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>[
|
||||
|
|
Loading…
Reference in a new issue