diff --git a/packages/mongoose-filter-query/src/utils.js b/packages/mongoose-filter-query/src/utils.js index 3e71a34..830da39 100644 --- a/packages/mongoose-filter-query/src/utils.js +++ b/packages/mongoose-filter-query/src/utils.js @@ -27,7 +27,7 @@ export const mapValue = (value) => { } else if (value.startsWith("ne(")) { value = parseOperatorValue(value, "ne"); if (value === "true" || value === "false") { - return { $eq: value === "true" }; + return { $ne: value === "true" }; } return { $ne: value }; } else if (value.startsWith("gt(")) {