Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Sequelize where #240

Open
oney opened this issue Jun 10, 2020 · 2 comments
Open

Support Sequelize where #240

oney opened this issue Jun 10, 2020 · 2 comments
Labels
Milestone

Comments

@oney
Copy link

oney commented Jun 10, 2020

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

@ukrbublik
Copy link
Owner

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

@ukrbublik
Copy link
Owner

ukrbublik commented Jun 10, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants