react-awesome-query-builder icon indicating copy to clipboard operation
react-awesome-query-builder copied to clipboard

Format "not" conjunction for JsonLogic export

Open ymittal opened this issue 5 years ago • 2 comments

Is there a way to format the "NOT" conjunction for JsonLogic export? I think the relevant logic is here: https://github.com/ukrbublik/react-awesome-query-builder/blob/70515a5ad08138598a7acfa9f7fdb483afba6a72/modules/export/jsonLogic.js#L158

ymittal avatar Feb 20 '20 23:02 ymittal

Yes, that is relevant logic. I thought there is no need to customize export of "NOT". Cause how else can it be formatted to JsonLogic?

ukrbublik avatar Mar 11 '20 01:03 ukrbublik

Yes, it's needed. For example if you are generating a query for an API that expects {"not": {}} instead of {"!": {}}

multimeric avatar Jul 26 '22 09:07 multimeric