From e9d12a46c533a5d126a5067b5e05d439020aaeb4 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 10 Feb 2023 18:12:39 +0800 Subject: [PATCH] feat(nocodb): handle isNoneOf, anyof & allof logic --- packages/nocodb/src/lib/meta/api/sync/helpers/job.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/nocodb/src/lib/meta/api/sync/helpers/job.ts b/packages/nocodb/src/lib/meta/api/sync/helpers/job.ts index 88de9deeaf..abe8e02d87 100644 --- a/packages/nocodb/src/lib/meta/api/sync/helpers/job.ts +++ b/packages/nocodb/src/lib/meta/api/sync/helpers/job.ts @@ -1978,6 +1978,8 @@ export default async ( doesNotContain: 'nlike', isAnyOf: 'anyof', isNoneOf: 'nanyof', + '|': 'anyof', + '&': 'allof', }; async function nc_configureFilters(viewId, f) { @@ -2017,6 +2019,9 @@ export default async ( datatype === UITypes.SingleSelect || datatype === UITypes.MultiSelect ) { + if (filter.operator === 'doesNotContain') { + filter.operator = 'isNoneOf'; + } // if array, break it down to multiple filters if (Array.isArray(filter.value)) { const fx = {