Browse Source

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

Fix bug coercing arguments that are lists
Bjorn Swenson 8 năm trước cách đây
mục cha
commit
923248db1d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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