* Creating associations in sequelize is done by calling one of the belongsTo / hasOne / hasMany / belongsToMany functions on a model (the source), and providing another model as the first argument to the function (the target).
@@ -31,7 +32,6 @@ const Op = require('./operators');
* In addition to sequelize, the connection library for the dialect you want to use should also be installed in your project. You don't need to import it however, as sequelize will take care of that.
*/
classSequelize{
/**
* Instantiate sequelize with name of database, username and password
*
...
...
@@ -777,7 +777,13 @@ class Sequelize {
* @return {Promise}
*/
authenticate(options){
returnthis.query('SELECT 1+1 AS result',_.assign({raw:true,plain:true},options)).return();
options=_.assign({
raw:true,
plain:true,
type:QueryTypes.SELECT
},options);
returnthis.query('SELECT 1+1 AS result',options).return();