Mongoose
Introduction


It is similar with sequalize, is a object document mapping library
It operate by using command behind the scene
Connect to MongoDB
mongoose
.connect(
'mongodb+srv://maximilian:9u4biljMQc4jjqbe@cluster0-ntrwp.mongodb.net/shop?retryWrites=true'
)
.then(result => {
app.listen(3000);
})
.catch(err => {
console.log(err);
});Modal Definition
CRUD Operation
Last updated
Was this helpful?