Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Md Zubair Ahmed
Md Zubair Ahmed

Posted on

     

Fixing a very common warning of Sequelize.js

We had this constant error showing up in our development logs :

squelize deprecated String based operators are now deprecated. Please use Symbol based operators for better security, read more athttp://docs.sequelizejs.com/manual/tutorial/querying.html#operators node_modules/sequelize/lib/sequelize.js:236:13

On simple google search, lead me to this huge issue on GitHubhttps://github.com/sequelize/sequelize/issues/8417.

Conversation over there is huge, there seems to be many potentials solutions, the ones which collaborators most suggested was to disable operator aliasing. So any string based operator will be disabled without any aliases instead symbol based built in operators will be used. This prevents cross site attacks.

constsequelize=newSequelize(config.databaseUrl,{operatorsAliases:false,})

Follow here for even in detail explanation.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

A Software developer. Currently i am working on frontend web development with Javascript and learning backend web development with GoLang.
  • Location
    India
  • Education
    Bachelor of Engineering
  • Work
    Software developer at Cloudmango
  • Joined

More fromMd Zubair Ahmed

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp