DeprecationWarning: current Server Discovery and Monitoring engine is deprecated

Could someone help me fix this issue I am having when trying to launch the mflix using mongoDB? I am on Ubuntu 19.10 which may be causing some issues, but I’m fairly confident I have the correct mongo packages and dependencies.
Here is the terminal output:

mflix-js sudo npm start

server@1.0.0 start /home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js
nodemon -L ./index.js

[nodemon] 1.19.1
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node ./index.js
(node:28917) 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 MongoClient.connect.
MongoNetworkError: failed to connect to server [gettingstarted-shard-00-01-emvuf.mongodb.net:27017] on first connect [MongoError: bad auth Authentication failed.
at /home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/auth/auth_provider.js:46:25
at /home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/auth/scram.js:215:18
at Connection.messageHandler (/home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/connection/connect.js:334:5)
at Connection.emit (events.js:210:5)
at processMessage (/home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/connection/connection.js:364:10)
at TLSSocket. (/home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/connection/connection.js:533:15)
at TLSSocket.emit (events.js:210:5)
at addChunk (_stream_readable.js:308:12)
at readableAddChunk (_stream_readable.js:289:11)
at TLSSocket.Readable.push (_stream_readable.js:223:10) {
ok: 0,
errmsg: ‘bad auth Authentication failed.’,
code: 8000,
codeName: ‘AtlasError’,
name: ‘MongoError’,
[Symbol(mongoErrorContextSymbol)]: {}
}]
at Pool. (/home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/topologies/server.js:431:11)
at Pool.emit (events.js:210:5)
at /home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/connection/pool.js:580:14
at callback (/home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/connection/connect.js:109:5)
at /home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/connection/connect.js:352:21
at /home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/auth/auth_provider.js:66:11
at /home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/auth/scram.js:215:18
at Connection.messageHandler (/home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/connection/connect.js:334:5)
at Connection.emit (events.js:210:5)
at processMessage (/home/nalean/Documents/School 2019-2020/mongodb/m220/mflix-js/node_modules/mongodb/lib/core/connection/connection.js:364:10)
[nodemon] app crashed - waiting for file changes before starting…
^C

Please check the username and password used in the connection string.

Kanika