Fix a bug with Tags and IS NULL
This commit is contained in:
1 parent
edadfe54c8
commit
b35ceca8f1
1 file changed
+1
-1
@@ -157,7 +157,7 @@ export function filterToMongoQuery(exp: Expression): {} {
|
|||||||
let p = (res[param] = res[param] || {});
|
let p = (res[param] = res[param] || {});
|
||||||
if (negate) p = p["$not"] = p["$not"] || {};
|
if (negate) p = p["$not"] = p["$not"] || {};
|
||||||
p["$ne"] = filter[2];
|
p["$ne"] = filter[2];
|
||||||
p["$exists"] = true;
|
if (param !== "_tags") p["$exists"] = true;
|
||||||
} else if (op === ">") {
|
} else if (op === ">") {
|
||||||
const param = filter[1][1];
|
const param = filter[1][1];
|
||||||
let p = (res[param] = res[param] || {});
|
let p = (res[param] = res[param] || {});
|
||||||
|
|||||||
Reference in new issue
Block a user