You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i try no connect to Atlas Mongodb, the connection was succesful. Although, the following message appeared on terminal:
**
error in authentication man! [Function: error]
(node:9712) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version
(Use node --trace-warnings ... to show where the warning was created)
(node:9712) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version**
When i try no connect to Atlas Mongodb, the connection was succesful. Although, the following message appeared on terminal:
**
The connection coding:
`const { error } = require('console');
const { MongoClient } = require('mongodb');
const uri = "mongodb+srv://kelwinesechiel8:@cluster0.vxfjhgw.mongodb.net/?retryWrites=true&w=majority";
async function run() {
const client = new MongoClient(uri, { useNewUrlParser: true, useUnifiedTopology: true });
try {
await client.connect();
} finally {
await client.close();
}
}
run().catch(console.log('error in authentication man!', error));
`
Config:
Node 20.8.1
Mongodb ^6.3.0
The text was updated successfully, but these errors were encountered: