Introduction in MongoDB
basic · MongoDB — Documents & data modeling
Before diving into NoSQL, it’s important to understand the difference between a query language and a Database Management System (DBMS) . A query language is used to interact with a database—meaning you use it to create, read, update, and delete data. For example, SQL is a query language. A DBMS is the software that manages the database itself. For instance, MySQL is a DBMS that uses SQL as its primary query language. So what is a NoSQL database? A NoSQL database refers to a type of DBMS that does not rely on traditional SQL (relational model) for handling data. Instead, it uses alternative data models and query methods. This does not always mean “no SQL at all” , but rather “not only SQL” or “non-relational” . Examples include: MongoDB → uses JSON-like documents and its own query syntax Apache Cassandra → uses CQL (similar to SQL but designed for distributed systems) Amazon DynamoDB → uses API/SDK-based queries instead of SQL