瀏覽代碼

Merge pull request #12 from Comcast/bugfix/coerce-values-util-map

Fix bug coercing arguments that are lists
Bjorn Swenson 8 年之前
父節點
當前提交
923248db1d
共有 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