From 518254aa55e22ff763560f47123f28fc6bf2032d Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Thu, 20 Sep 2018 12:31:48 -0700 Subject: [PATCH] Fix bug in Mongo query conversion --- server/mongodb-functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/mongodb-functions.js b/server/mongodb-functions.js index 428d683..27e3aef 100644 --- a/server/mongodb-functions.js +++ b/server/mongodb-functions.js @@ -376,7 +376,7 @@ function mongoQueryToFilter(query) { } } else if (k.startsWith("Tags.")) { expressions.push([ - `IS${v["$exists"] ? " " : " NOT "}NULL`, + v["$exists"] ? "IS NOT NULL" : "IS NULL", ["PARAM", k] ]); } else if (typeof v === "object") {