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) {