Преглед на файлове

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 години
родител
ревизия
08abb38edf
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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