MONGOOSE What A Cool Name!!

This article will be an attempt to describe what is Mongoose and what is it used for. First before we get started we will go over some basics when dealing with Databases.

A Database is a collection of information that is organized so this it can be easily accessed, managed and updated. They process workloads to create and update themselves, querying the data they contain and running applications against it.

A schema is a blueprint or skeleton structure that represents the logical view of the entire database.

Mongoose is used with the Mongo Database. It is provides a schema that models your data in the database. So in other words it provides pointers for the different data types. It creates an object reference when working with Mongo. Mongoose allows the database to be model within the code itself. It does this by first downloading the Mongoose module into Mongo Database. Then it sets up a variable reference to the Mongoose schema. You will have to setup your schema first and this is done by using Node (module.exports).

This sounds simple and this is why Mongoose is so popular when using Mongo Database. This is by no means meant to be a step by step tutorial on how to set up Mongoose to be used as a schema for Mongo. There are many steps that it takes to design a schema. This was only meant to show why Mongoose is so popular with Mongo users.