I am trying to connect with mongodb database but it throws some kind of error I am unable to understand
(node:94165) DeprecationWarning: 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.
(Use `node --trace-deprecation ...` to show where the warning was created)
at TLSSocket.<anonymous> (/home/aman/Documents/Coding/nodejs/expressjs_ejs_mongodb/node_modules/mongodb/lib/core/connection/connection.js:372:9)
at Object.onceWrapper (events.js:422:26)
at TLSSocket.emit (events.js:315:20)
at net.js:670:12
at TCP.done (_tls_wrap.js:554:7)]
at Pool.<anonymous> (/home/aman/Documents/Coding/nodejs/expressjs_ejs_mongodb/node_modules/mongodb/lib/core/topologies/server.js:438:11)
at Pool.emit (events.js:315:20)
at /home/aman/Documents/Coding/nodejs/expressjs_ejs_mongodb/node_modules/mongodb/lib/core/connection/pool.js:562:14
at /home/aman/Documents/Coding/nodejs/expressjs_ejs_mongodb/node_modules/mongodb/lib/core/connection/pool.js:1009:9
at callback (/home/aman/Documents/Coding/nodejs/expressjs_ejs_mongodb/node_modules/mongodb/lib/core/connection/connect.js:97:5)
at /home/aman/Documents/Coding/nodejs/expressjs_ejs_mongodb/node_modules/mongodb/lib/core/connection/connect.js:124:7
at _callback (/home/aman/Documents/Coding/nodejs/expressjs_ejs_mongodb/node_modules/mongodb/lib/core/connection/connect.js:349:5)
at Connection.errorHandler (/home/aman/Documents/Coding/nodejs/expressjs_ejs_mongodb/node_modules/mongodb/lib/core/connection/connect.js:365:5)
at Object.onceWrapper (events.js:422:26)
at Connection.emit (events.js:315:20)