Sequelize Model.update

twitter logo github logo Updated on ・1 min read

Using sequelize for model creation, i needed to update my database so i used Model.findByIdAndUpdate which returned an error and i later found the right way to update to the database using
title: 'Updated title '
id: 1
I hope this helps someone out there... or is their any other way ? i will like to know thanks.
example below:

twitter logo DISCUSS
Classic DEV Post from Jun 1

Demystifying Open Source Contributions

Tiamiyu Sikiru Abidemi profile image
I'm passionate about learning