A
A
Alex102142021-08-06 12:49:56
Node.js
Alex10214, 2021-08-06 12:49:56

How to properly iterate and modify objects in sequelize?

Hello, I have a table in mysql database.
610d04244f69e387978047.png
On the client, the value is changed and I need to overwrite it. Changed data arrives from the front in the form:
{ pf_level: 10, days_min: 10}. My table has 500 rows. I'm still new to sequelize( How can I iterate over a table in sequelize and replace the data that has changed in it? Please tell me ... Sorry for the stupid question.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question