Answer the question
In order to leave comments, you need to log in
Why can't call a method when using Sequelize?
const Sequelize = require('sequelize'),
sequelize = new Sequelize('first', 'mak', 'pass', {
dialect: 'mysql',
host: 'localhost'
});
sequelize
.authenticate()
.complete((err) => {
if (err) {
console.log('Ошибка подключения');
throw err;
} else {
console.log('Соединение установлено');
sequelize
.query('SELECT * FROM band', null, {raw: true})
.success((el) => {
console.log(el);
});
}
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question