Skip to content

Commit

Permalink
fix(notEqualTo): ordering of ops prevented ops
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeIbberson committed May 4, 2020
1 parent 5fdcc49 commit 7ff2cc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const ops = {
'<=': isLessThanOrEqualTo,
'>': isGreaterThan,
'<': isLessThan,
'=': equals,
'!=': doesNotEqual,
'=': equals,
};

const getAssignment = {
Expand All @@ -27,6 +27,9 @@ const getAssignment = {
}),
'equals': cast,
'isEmpty': cast,
'doesNotEqual': (v) => ({
$ne: cast(v),
}),
'isLessThan': (v) => ({
$lt: cast(v),
}),
Expand Down

0 comments on commit 7ff2cc1

Please sign in to comment.