Tech Glossary

What is Mongoose?

Mongoose is a JavaScript library used to create, validate and understand documents in MongoDB. Mongoose provides a schema on mongodb documents and provides access to methods to manipulate the data. This makes it easier to use MongoDB with Node.js. Mongoose is used to: Create a schema for mongodb documents Validate mongodb documents Convert mongodb documents to JavaScript objects Create, read, update and delete mongodb documents Compared to other technologies, Mongoose is one of the easier to use and understand. Other techniques I compared it to are: Mongodb shell: This is a command line interface for MongoDB. It is not as easy to use as Mongoose because it requires more knowledge of MongoDB. Mongodb-native: This is a JavaScript library for MongoDB. It is more advanced than Mongoose and requires more knowledge of MongoDB.