DEV Community

Cover image for Mongoose
asrafulsow
asrafulsow

Posted on

Mongoose

What is Mongoose

Mongoose is an elegant Object Data Modeling or ODM. Mongoose manages relationships between data, provides schema validation. Basically Using mongoose a user can define the schema for the documentation in a particular collection. Basically, mongoose provides a lot of convenience in the creation and management of data in MongoDB.

Mongoose Benefit.

Some benefits of using Mongoose, Basically when we use Mongoose we have schema to work against in our application code and explicit relationship between our MongoDB. And mongoose is equivalent to tables in relational databases. They can hold multiple JSON documents.

There are a Few types of Schema that are String, Number, Date, Buffer, Boolean, Mixed, ObjectId, Array, Decimal, Map, Schema.

Top comments (0)