Skip to content

Commit

Permalink
Fix array spread order dependence bug
Browse files Browse the repository at this point in the history
Fix array spread order dependence bug in TS based queries
  • Loading branch information
adelsz committed May 22, 2020
1 parent 5027ebd commit 786d89c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/query/src/preprocessor.ts
Expand Up @@ -313,8 +313,9 @@ export const processQueryString = (
if (assertDictArray(dictArray)) {
replacement = dictArray
.map((d) => {
const tupleStr = Object.values(d)
.map((value) => {
const tupleStr = keys
.map((key) => {
const value = d[key];
bindings.push(value);
return `$${++index}`;
})
Expand Down Expand Up @@ -348,7 +349,6 @@ export const processQueryString = (
if (assertScalarArray(scalars)) {
replacement = scalars
.map((value) => {
// TODO: bindings push
bindings.push(value);
return `$${++index}`;
})
Expand Down

0 comments on commit 786d89c

Please sign in to comment.