Answers for "# The MongoEngine connection string."

2

mongodb connection string

module.exports = (mongoose) => {
    mongoose.connect(process.env.MONGODB_URI, {
      useNewUrlParser: true,
      useUnifiedTopology: true,
      useCreateIndex: true,
      useFindAndModify: false,
    }, (err) => {
        if (!err) {console.log('Mongodb Connected Successfully')}
        else {console.log('Error in Db connection')}
    }  );
  };
Posted by: Guest on July-21-2021

Code answers related to "# The MongoEngine connection string."

Browse Popular Code Answers by Language