DEV Community

Imran Hasan
Imran Hasan

Posted on

What is Mongoose?

Mongoose is an Object Document Mapper (ODM). This means that Mongoose allows us to define objects with a strongly-typed schema that is mapped to a MongoDB document.Mongoose is a way to make connections with mongodb databases. It provides mongodb validation and query in a very simple manner and it makes development fast.
Mongoose provides an incredible amount of functionality around creating and working with schemas. Mongoose currently contains eight SchemaTypes that a property is saved as when it is persisted to MongoDB. They are:
String
Number
Date
Buffer
Boolean
Mixed
ObjectId
Array

Oldest comments (0)