Mongoose Tutorial - Node
What is Mongoose?
Mongoose - Terminologies
Mongoose In Action - Referencing
Mongoose In Action - Defining the Schema
Mongoose In Action - Exporting a Model
Mongoose - Creating an Application
Mongoose - CRUD Operations
Author Profile
Altaf Shaikh

BE Engg | Python Dev | Content Writer | Founder of TeachMeBro | Blockchain Dev | Django

What is Mongoose?

January 25th 2021

Mongoose is an Object Data Modeling (ODM) library for MongoDB and Node.js. It manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB.


 

MongoDb VS SQL

MongoDB is a schema-less NoSQL document database. It means you can store JSON documents in it, and the structure of these documents can vary as it is not enforced like SQL databases. This is one of the advantages of using NoSQL as it speeds up application development and reduces the complexity of deployments.

Below is an example of how data is stored in Mongo vs. SQL Database:

 

Mongoose has a great documentation, checkout the docs here to learn more about Mongoose.