Y
Hacker News
new
|
ask
|
show
|
jobs
by
k__
4137 days ago
Sequelize has the build method, which persists automatically.
Couldn't the rest be achieved by simply adding a few (update, delete) methods to the model classes?
1 comments
bulkan
4137 days ago
The create method on model's persist automatically. Build just creates an instance without saving it to the database.
link
k__
4137 days ago
Really? I thought it was the other way around...
link