Browse Source

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 năm trước cách đây
mục cha
commit
08abb38edf
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