Bladeren bron

Fix bug coercing arguments that are lists

This would previously result in an empty list or error. This looks like
it was just missed when converting from a for loop into using
`util.map`.
Sean Cribbs 8 jaren geleden
bovenliggende
commit
08abb38edf
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      graphql/util.lua

+ 1 - 1
graphql/util.lua

@@ -66,7 +66,7 @@ function util.coerceValue(node, schemaType, variables)
     end
 
     return util.map(node.values, function(value)
-      return util.coerceValue(node.values[i], schemaType.ofType, variables)
+      return util.coerceValue(value, schemaType.ofType, variables)
     end)
   end