how to connect to mongo directly to database code example
Example 1: connect to mongo database
mongoose.connect(mongoURI);
Example 2: connect to mongodb
npm install mongodb --save
mongoose.connect(mongoURI);
npm install mongodb --save