Sequelize alpha-v7 version: want to use sql template tag #16711
-
Hi, I want to use sql template tag with sequelize.query() but I am not able to use const sequelize = new Sequelize(process.env.LOCAL_DB_NAME, But this is giving error ""sql" cannot be an object. Pass a string instead, and pass bind and replacement parameters through the "options" parameter'" I am importing Sequelize, sql both from @sequelize/core Here sql template tag is returning Literal & sequelize.query(sql) expecting first parameter as string. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This was fixed in the latest release https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.34 |
Beta Was this translation helpful? Give feedback.
This was fixed in the latest release https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.34