Answers for "DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version."

0

DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version.

#1 You can downgrade mongodb to version 3.6.3

#2 Or downgrade mongoose from 5.11.16 back to 5.11.15:

npm uninstall mongoose
npm install [email protected]

#3 Or just wait for the release of [email protected].
Posted by: Guest on February-24-2021
0

DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version.

#1 You can downgrade mongodb to version 3.6.3

#2 Or downgrade mongoose from 5.11.16 back to 5.11.15:

npm uninstall mongoose
npm install [email protected]

#3 Or just wait for the release of [email protected].
Posted by: Guest on February-24-2021

Code answers related to "DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version."

Browse Popular Code Answers by Language