ukrbublik / react-awesome-query-builder

User-friendly query builder for React
https://ukrbublik.github.io/react-awesome-query-builder
MIT License
1.96k stars 493 forks source link

Format "not" conjunction for JsonLogic export #155

Open ymittal opened 4 years ago

ymittal commented 4 years ago

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

ukrbublik commented 4 years ago

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?

multimeric commented 2 years ago

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