MongooseError: Le paramètre `URI` à` OpenUri () `doit être une chaîne, obtenu" non défini ". Assurez-vous que le premier paramètre à `mongoose.connect ()` ou `mongoose.createConnection ()` est une chaîne.

mongoose.connect(), first argument should be String, received undefined

//If .env file is used in config folder, make sure the DB_STRING is associated with its
//value, which is the mongodb connection string from the cluster
//Next, install dotenv and require it in the app.js file:

require("dotenv").config({ path: "./config/.env" });
Depressed Dove