react-awesome-query-builder
react-awesome-query-builder copied to clipboard
Format "not" conjunction for JsonLogic export
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
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?
Yes, it's needed. For example if you are generating a query for an API that expects {"not": {}}
instead of {"!": {}}