I read the quick start from the Mongoose website and I almost copy the code, but I cannot connect the MongoDB using Node.js.
var mongoose = require(\'mongoos
A simple way i make a connection:
const mongoose = require('mongoose')
mongoose.connect(); mongoose.Promise = global.Promise; mongoose.connection.on("error", error => { console.log('Problem connection to the database'+error); });