hacker daily

Sequelize: Association Methods Make Life Easier

I can’t count the number of times that the phrase “I don’t understand Sequelize associations” came out of my mouth this past week. I’m pretty good at creating tables and adding/modifying/deleting instances, but I’ve never really worked well with associations. Don’t get me wrong, I can write a “Order.hasMany(Products)” association with the best of them, but I never really felt any need for those getProducts() and addProducts() methods.Until this week, that is.Senior phase of my bootcamp at Fullstack means projects, and right...