Tuesday, 4 April 2017

Sequelize generates bad sql on nested includes

I have posted this issue on the github project but seeing that the project doesn't seem to be super active I'm turning to SO for help.

I don't believe I'm doing something wrong or complicated. But basically I want to search values while joining three tables together and applying a LIMIT clause to the query (to perform pagination).

I have no idea what I could implement as a workaround to make this work except : totally bypassing the sql generation and switching to Sequelize.query method :/



via Shahor

No comments:

Post a Comment