Answer the question
In order to leave comments, you need to log in
Synchronous ORM Node js?
Greetings. Generally such a problem. There is an entry in the database about the user, as well as ORM Sequelize. I'm trying to get this ORM to work in sync because promises don't work for me. Is this even possible, or will you have to abandon the ORM and use fucking raw queries?
Answer the question
In order to leave comments, you need to log in
I'm trying to get this ORM to work in sync.... Is it even possible.... ?
co(function* () {
var user = yield User.find(id=5);
some_manipulations_with_user(user);
yield user.save();
...
});
The code is not working, just a demonstration of the idea. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question