Guest User

Untitled

a guest
Nov 20th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. mongoose.connect(mongodb://localhost/test, { useMongoClient: true });
  2. mongoose.Promise = global.Promise;
  3.  
  4. const db = mongoose.connection;
  5. db.on('error', console.error);
  6. db.once('open', () => {
  7. console.log(rangi.green('Connected To MongoDB'));
  8. });
Add Comment
Please, Sign In to add comment