Introduction to MongoDB
This article will be the first part of understanding and learning MongoDB. We will answer some questions and apply basic commands with the MongoDB shell. Let's start;
What is MongoDB?
MongoDB is basically a NoSQL database. MongoDB is a document database with the scalability and flexibility that you want with the querying and indexing that you need.
If we compare it with the relational database systems, MongoDB has no “joins” and “cascade” operations are not natively supported by MongoDB.
Dynamic Schema
Also, MongoDB has a dynamic schema design. Schema design determines the way an application handles its data.
In relational databases, we should define our schema before adding data. And it causes inflexibility which means you can’t change your schema as your data, application requirements or business evolves.
NoSQL databases arose to become a solution to this problem by allowing you to insert data without a predefined schema. So, you can easily make changes to an application without interruption. The result is more reliable code integration, faster development, and database administration time.
Document-based
Next, MongoDB is document-based. Document-based means that instead of Tables, Rows…