Fix: Undefined dot notation in matchKeyInQuery (#5917)

* Fix: Undefined dot notation in matchKeyInQuery

* fix test

* fix postgres test

* improve tests

* FINAL test
This commit is contained in:
Diamond Lewis
2019-08-13 23:34:46 -05:00
committed by Antonio Davi Macedo Coelho de Castro
parent 470bb238b5
commit 1a7f64d8d9
3 changed files with 76 additions and 3 deletions

View File

@@ -442,7 +442,7 @@ const buildWhereClause = ({ schema, query, index }): WhereClause => {
const inPatterns = [];
values.push(fieldName);
baseArray.forEach((listElem, listIndex) => {
if (listElem !== null) {
if (listElem != null) {
values.push(listElem);
inPatterns.push(`$${index + 1 + listIndex}`);
}