(node:30810) DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version code example
Example: 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].