Answers for "how insert variable dotenv password mangodb"

0

how insert variable dotenv password mangodb

mongoose.connect(`mongodb+srv://${process.env.MONGO_USERNAME}:${process.env.MONGO_PASSWORD}@jons-thoughts.xpo8p.mongodb.net/jons-thoughts?retryWrites=true&w=majority`);
Posted by: Guest on October-05-2021
0

how insert variable dotenv password mangodb

mongoose.connect(process.env.MONGO_URI)
Posted by: Guest on October-05-2021
0

how insert variable dotenv password mangodb

mongoose.connect('mongodb+srv://' + process.env.MONGO_USERNAME + ':' + process.env.MONGO_PASSWORD + '@jons-thoughts.xpo8p.mongodb.net/jons-thoughts?retryWrites=true&w=majority');
Posted by: Guest on October-05-2021
0

how insert variable dotenv password mangodb

MONGO_URI=mongodb+srv://<username>:<password>@jons-thoughts.xpo8p.mongodb.net/jons-thoughts?retryWrites=true&w=majority
Posted by: Guest on October-05-2021

Browse Popular Code Answers by Language