Home > other >  DeprecationWarning for Sequelize in node.js
DeprecationWarning for Sequelize in node.js

Time:11-03

While upgrading the version for sequelize to the latest (current 6.25.3) version, It shows no errors but gives the below warning:

(node:58292) [SEQUELIZE0004] DeprecationWarning: A boolean value was passed to options.operatorsAliases. This is a no-op with v5 and should be removed. (Use node --trace-deprecation ... to show where the warning was created)

Thanks for the answers !

Tried to find the solution for it on the sequelize documentation.

CodePudding user response:

You can try changing the operatorsAliases: false option used in your sequelize config file to operatorsAliases: 0.

In the latest version of sequelize, the boolean values '1','0' will be used instead of true,false. So try that, It might not show the deprecation warning again.

Happy coding !!!

  • Related