Skip to content

Latest commit

 

History

History

mongoose

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

mongoose

What is mongoose ?

  • Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Mongoose supports both promises and callbacks.

Installation

Using npm:

$ npm install mongoose

Features

  • Mongoose is a Node.js-based Object Data Modeling (ODM) library for MongoDB.
  • It is akin to an Object Relational Mapper (ORM) such as SQLAlchemy for traditional SQL databases.
  • The problem that Mongoose aims to solve is allowing developers to enforce a specific schema at the application layer.
  • In addition to enforcing a schema, Mongoose also offers a variety of hooks, model validation, and other features aimed at making it easier to work with MongoDB.