Explorar o código

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

Fix bug coercing arguments that are lists
Bjorn Swenson %!s(int64=8) %!d(string=hai) anos
pai
achega
923248db1d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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