Skip to content

Commit

Permalink
Merge pull request #66 from arunas-smala/patch-1
Browse files Browse the repository at this point in the history
Fix $ne
  • Loading branch information
icebob authored Aug 7, 2024
2 parents f7a28b4 + 0d68e56 commit a72349a
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 a72349a

Please sign in to comment.