Currently in the internship i’m doing I was given a task which involved me taking a look at their Backend for their application. I noticed It was completely different from what I learned at my bootcamp. They were using MongoDB. I had to learn this in so little time to get my task done on time. So this is an introduction to MongoDB.

MongoDB is an open source NoSQL database. It is a document-based database management system. which supports a storage format known as binary JSON. It is a list of key- value pairs which can be three types, a primitive value, an array of documents or a list of key value pairs. This makes it easy for applications to obtain and change data. To query these objects,we can set filters on the collections expressed as a list of key-value pairs.

MongoDB requires us to always use the correct type. If you give an integer value into a document, you have to query for it also with an integer.The database also supports indexes, It is possible to create ascending, descending, unique and geospatial indexes.

Indexes are special data structures [1] that store a small portion of the collection’s data set in an easy to traverse form. The index stores the value of a specific field or set of fields, ordered by the value of the field. The ordering of the index entries supports efficient equality matches and range-based query operations. In addition, MongoDB can return sorted results by using the ordering in the index.

there’s a lot to mongoDB but it is simple to use, their documentation is very good and I recommend to go check it out, in the next article I will do a small tutorial using mongoDB.