MongoParseError: Invalid connection string
问题 I am trying to connect MongoDB database with this code but when running it I get the error (see the error below after the code). The initial error was in the line where it was resolved by adding useNewUrlParser: true but even after this I still get more errors. I am using MongoDB version 4.0.1. Does anybody know how to resolve this error? mongoose.connect('User://localhost:27017/User',{ useNewUrlParser: true }) Error while running this code: (node:11068) UnhandledPromiseRejectionWarning: