arangace / CreamCat

SOFTENG750 project team CreamCat
MIT License
0 stars 3 forks source link

MongoDB warning when executing backend start script #25

Closed nivekyee closed 3 years ago

nivekyee commented 3 years ago

Running the backend start script displays a MongoDB Driver warning, but the backend still works without a problem.

The console displays a warning:

(node:32116) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.

Desktop:

Similar issue and solution can be found here: https://github.com/Automattic/mongoose/issues/8156

Does anybody else have this problem? If not, can you post your Mongoose and MongoDB data versions as a reference? If it is a common issue then it might be wise to try and apply the fix mentioned above.