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") {