Skip to content

JSON Format Support for Queries #1099

Answered by ukrbublik
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Utils.Export.queryBuilderFormat provides export in very similar format.

https://github.com/ukrbublik/react-awesome-query-builder/blob/master/packages/core/modules/export/queryBuilder.js

queryBuilderFormat(tree: ImmutableTree, config: Config): Object | undefined;

I think all you need is to rename keys like condition -> combinator.
You can make a PR to add these renamings. (Ideally with configuration of key names in config.settings to prevent breaking changes. Or just copy file and create separate export function with required keys)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant