Node.js Mongoose Tutorial

Node.js Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.

In this series of tutorials, we shall learn about Mongoose package, how to install it, and different operations that are available with MongoDB.

Mongoose Tutorial Index

  1. Mongoose – Installation
  2. Mongoose – Connecting to MongoDB
  3. Mongoose – Defining a Model
  4. Mongoose – Accessing a Model
  5. Mongoose – Embedded Documents

Overview of Mongoose

With the help of Mongoose, we can model our data. For example consider that we are operating a store. Store has items. Each item could have properties : name, id, price, discount price, etc. With Mongoose we can model our items and do insertions or reads from the MongoDB Collection in terms of model objects, not bothering about the details of an object. Mongoose provides abstraction at Model level.


In these series of Node.js Mongoose tutorials, we have learnt how to work with Mongoose package.