Answer the question
In order to leave comments, you need to log in
Sequelize return fields on Update?
Hello, tell me please. What is the correct way to return an updated record in Sequelize?
const category = await models.GalleryCategory.update(
{ num, visible, name }, { where: { id } }
);
Answer the question
In order to leave comments, you need to log in
I did not find how, I use later:
.then(() => {
models.GalleryCategory.findOne(
{ where: { id } }
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question