Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to connect mongoose

const mongoose = require('mongoose');

const uri = process.env.MONGO_URI || 'mongodb://localhost/test';

mongoose.connect(uri, function(err, res) {
  ...
});
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #connect #mongoose
ADD COMMENT
Topic
Name
7+5 =