From 0d68e56fcd43e1121d26758daeaaa42868985f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ar=C5=ABnas=20Smaliukas?= Date: Tue, 6 Aug 2024 14:07:39 +0300 Subject: [PATCH] Fix $ne --- src/adapters/knex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/knex.js b/src/adapters/knex.js index 9cb9954..7be9278 100644 --- a/src/adapters/knex.js +++ b/src/adapters/knex.js @@ -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) {