Sfoglia il codice sorgente

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 anni fa
parent
commit
08abb38edf
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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