DEV Community

loading...

Sequelize Many-to-Many association – NodeJS/Express, MySQL

loizenai
Software Engineer - Founder at https://loizenai.com
・1 min read

https://grokonez.com/node-js/sequelize-many-to-many-association-nodejs-express-mysql

Sequelize Many-to-Many association – NodeJS/Express, MySQL

In the post, we got started with Sequelize One-To-Many association. Today we’re gonna create Sequelize Many-To-Many association models with NodeJS/Express, MySQL.

Related posts:

Sequelize Many-To-Many Association Express/Nodejs

Many-to-many association with a join table.

Note: When calling a method such as Project.belongsToMany(User, {through: 'UserProject'}), we say that the Project model is the source and the User model is the target.

https://grokonez.com/node-js/sequelize-many-to-many-association-nodejs-express-mysql

Sequelize Many-to-Many association – NodeJS/Express, MySQL

Discussion (0)

Forem Open with the Forem app