Tell us what’s happening:
Describe your issue in detail here.
The database connection test doesn’t pass, even though i used a try...catch block and used console.log() to check if the connection is successful.
The database i’m trying to connect to in the URI is called “myFirstDatabase”, it exists on my Mongo Atlas account, in case that’s important. But also, i tried changing this code: await client.db('database').collection('users')
to this: await client.db('myFirstDatabase').collection('users')
But the db connection test still did not pass.
According to the message in the console, the connection does happen. Please lend me a hand. Thank you