When I run a sequelize query in the console during a debug session, the return is an unresolved promise. But how can I get the outcome of that query/promise instantly?
The way I do it so far:
Author.findOne({})
.then(function(error, result){
debugger;
//now I can work with the outcome in the console
})
This approach is extremely time-consuming, simple changes in the query would require a rerun of the whole debug session to see the new outcome.