add is not operand on numeric fields (#16299)

closes https://github.com/twentyhq/twenty/issues/16162
This commit is contained in:
nitin
2025-12-04 18:55:24 +05:30
committed by GitHub
parent 2f36c2e82e
commit f0f648181e
8 changed files with 47 additions and 0 deletions
@@ -416,6 +416,14 @@ export const turnRecordFilterIntoRecordGqlOperationFilter = ({
eq: parseFloat(recordFilter.value),
} as FloatFilter,
};
case RecordFilterOperand.IS_NOT:
return {
not: {
[correspondingFieldMetadataItem.name]: {
eq: parseFloat(recordFilter.value),
} as FloatFilter,
},
};
default:
throw new Error(
`Unknown operand ${recordFilter.operand} for ${filterType} filter`,