2
0
Эх сурвалжийг харах

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

Fix bug coercing arguments that are lists
Bjorn Swenson 8 жил өмнө
parent
commit
923248db1d

+ 1 - 1
graphql/util.lua

@@ -66,7 +66,7 @@ function util.coerceValue(node, schemaType, variables)
     end
     end
 
 
     return util.map(node.values, function(value)
     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)
   end
   end