Skip to content

Commit

Permalink
Fix(mongoose-filter-query): default boolean parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 authored Apr 20, 2024
1 parent 6c456fa commit f213613
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mongoose-filter-query/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const mapValue = (value) => {
} else if (value.startsWith("exists(")) {
return { $exists: parseOperatorValue(value, "exists") === "true" };
}
if (value === "true" || value === "false") return value === "true"
return value;
};

Expand Down

0 comments on commit f213613

Please sign in to comment.