How egg-sequelize executes custom queries

Sequelize.query ("select * from..".
this is the native framework custom query method

ask how to execute the query in egg-sequelize.

Mar.01,2021

this.app.model.query ('select * from account', {type:'SELECT'}


if you don't want to query with SQL statements, just use sequelizejs's Querying. Egg-sequelize just encapsulates sequelizejs as a plug-in to the egg framework, so you can refer to how to use it.

  

await this.app.model.query ('select * from account', {type:'SELECT'}

Menu