ukrbublik / react-awesome-query-builder

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

Loading query from queryBuilderFormat. #1069

Open Naveenbc opened 1 week ago

Naveenbc commented 1 week ago

we have a legacy application where the Jquery query builder is used and all queries are stored in queryBuilderFormat. Now I need to load the old data in react-awesome-query-builder. It would be great if I can get a util to convert queryBuilderFormat to immutable tree format or vice versa or a util to load query builder using queryBuilderFormat.

Thanks and regards, Naveen B C

ukrbublik commented 1 week ago

I have plans to add import from MongoDb format. Did you consider to convert jQuery query builder format to MongoDb?

Naveenbc commented 1 day ago

@ukrbublik Sorry to bother you again. Is there an util to convert Jquery query builder format to MongoDB? Because with my legacy application Jquery format is already stored and i need load them in react-awesome-query-builder and I cannot load Jquery query builder just to convert.

Also if you have plans to import from MongoDb, would you mind sharing the timeline.

ukrbublik commented 1 day ago

There is a plugin for Jquery query builder https://querybuilder.js.org/plugins.html#mongodb-support https://querybuilder.js.org/demo.html#import_export

It should not be complex to implement convertor from Jquery query builder (because formats are similar) or from MongoDb, but I can't give timelines cause it's my hobby project and I work on it in my spare time

Naveenbc commented 16 hours ago

thats ok. Really appreciate your quick response and directions. I'll take from here.