From 71c279aee6b2f264ca0ce65ff18d4c20a4a8b2d7 Mon Sep 17 00:00:00 2001 From: Sajjad Shirazy Date: Sat, 2 Feb 2019 16:28:46 +0330 Subject: [PATCH] Supporting `NOT IN` as a filter --- packages/strapi-hook-mongoose/lib/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/strapi-hook-mongoose/lib/index.js b/packages/strapi-hook-mongoose/lib/index.js index 4daf8faa68..affa2b8def 100644 --- a/packages/strapi-hook-mongoose/lib/index.js +++ b/packages/strapi-hook-mongoose/lib/index.js @@ -567,6 +567,10 @@ module.exports = function (strapi) { result.key = `where.${key}.$in`; result.value = value; break; + case '_nin': + result.key = `where.${key}.$nin`; + result.value = value; + break; default: result = undefined; }