DEV Community

Discussion on: The Comprehensive Sequelize Cheatsheet

Collapse
 
nodejsdeveloperskh profile image
node.js.developers.kh

Hi. I have the same problem with Sequelize, I could not understand the aliases in Sequelize. can you write a post about it?

for example, I create order & user models. now i wanna define aliases for them:
user has multiple order, order has one user.
can you simplify it for me? how should i define the aliases & how should i use them in the find queries?

Collapse
 
tylerjusfly profile image
Tyler

I need to figure this out to...

Collapse
 
nodejsdeveloperskh profile image
node.js.developers.kh

Hello Momoh

I like to share one thing with you. I am no longer use Sequelize. I switch to prisma and now I got over Sequelize and its endless bottlenecks. Just try prisma