Having difficulty with sequelize association methods.
Hey I am have a problem with the sequelize package. I am try to create an association between the two models 'User' and 'Cart'.
Now in my app.ts file i am try to create some dummy user and cart.
However, I am getting error stating "createCart" property does not exist on the type 'User'. I was expecting the hasOne or hasMany relation in sequelize to provide me with some special methods. Please correct me i am wrong and help me clearify my doubt.
0 Replies