Skip to content

Commit

Permalink
Fix $ne
Browse files Browse the repository at this point in the history
  • Loading branch information
arunas-smala authored Aug 6, 2024
1 parent 695db40 commit 0d68e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/knex.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class KnexAdapter extends BaseAdapter {
} else if (value.$eq) {
q = q.where(key, "=", value.$eq);
} else if (value.$ne) {
q = q.where(key, "=", value.$ne);
q = q.where(key, "!=", value.$ne);
} else if (value.$exists === true) {
q = q.whereNotNull(key);
} else if (value.$exists === false) {
Expand Down

0 comments on commit 0d68e56

Please sign in to comment.