浏览代码

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