SyntaxFix
Write A Post
Hire A Developer
Questions
It is simple , remove the code that you have used and use the below code :
const url = 'mongodb://localhost:27017'; var dbConn = mongodb.MongoClient.connect(url, {useUnifiedTopology: true});