Supporting NOT IN as a filter

This commit is contained in:
Sajjad Shirazy 2019-02-02 16:25:03 +03:30 committed by GitHub
parent 5ed07cb27a
commit ec0992b3b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1109,6 +1109,13 @@ module.exports = function(strapi) {
symbol: 'IN',
value,
};
break;
case '_nin':
result.key = `where.${key}`;
result.value = {
symbol: 'NOT IN',
value,
};
break;
default:
return undefined;