I'm very new to Node and I'm getting my head around how ORM and Sequelize works. I've been on the Sequelize website and copied the connection string and altered it to work with my database. When I execute the file, it seems to execute OK creating the table in my database however I get the error "String based operators are now deprecated.Please use Symbol based operators for better security ....node_modules/sequelize/lib/sequelize.js:236:13" I understand why the operators have been deprecated, however as I've installed this as a new package and used the connection string from the documentation, thus avoiding using any illegal operators am I right in assuming this error message is for info only and not reflected in the code I have just used.
I include my for app file that is bringing up the error, is it the password that maybe causing this.
const express = require('express'); const app = express(); const Sequelize = require('sequelize'); const db = new Sequelize('myDBName', 'mYuSeRnAmE', 'mYpAsSw!ORd$', { host: 'mySqlserverName', dialect: 'mssql', pool: { max: 5, min: 0, idle: 10000 }, }); var Article = db.define('Article', { title: Sequelize.STRING, body: Sequelize.TEXT }); db.sync(); module.exports = app;
**** Edit ****
I've figured it out, I'll leave this answer up just incase someone else runs into the problem. You need to include { operatorsAliases: false } to get rid of the error message in the connection.