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

Support Sequelize where

Open oney opened this issue 5 years ago • 2 comments

Thank you for creating this project!!

I'm trying to export the query to Sequelize findOne/findAll where format. Sequelize's where is very similar to QbUtils.mongodbFormat. I'm wondering that I should modify mongo setting like mongoConj, mongoFormatOp, or I should use QbUtils.queryBuilderFormat

oney avatar Jun 10 '20 03:06 oney

I would create a separate method in QbUtils for this. mongodbFormat has some mongo-specific stuff.

ukrbublik avatar Jun 10 '20 09:06 ukrbublik

I have one concern: Sequelize uses symbols for operators (src), so not sure how to serialize this correctly and transfer to backend. Probably with EJSON

ukrbublik avatar Jun 10 '20 11:06 ukrbublik