SlingAcademy

MongoDB

MongoDB is a NoSQL database known for its flexibility and scalability, using document-oriented storage with JSON-like schemas for efficient data management and retrieval.

MongoDB: Calculating the Distance between 2 Locations

Updated: Feb 02, 2024

Introduction MongoDB is a popular NoSQL database that is known for its flexibility, scalability, and wide range of features, including geospatial queries. It has built-in support for storing and querying geospatial data, making it an......

MongoDB: Using $min, $max, and $mul when updating documents

Updated: Feb 02, 2024

Introduction This tutorial aims to provide an understanding of how to use the $min, $max, and $mul operators in MongoDB when updating documents. Each of these operators can be used to modify the values of fields within your documents......

MongoDB: Using lookUp() to merge reference relations

Updated: Feb 02, 2024

The $lookup Stage The $lookup stage in the aggregation pipeline allows us to perform a left outer join to a collection in the same database to filter in documents from the joined collection for processing. The basic $lookup syntax is......

5 ways to mimic ENUM behavior in MongoDB (with examples)

Updated: Feb 02, 2024

Introduction MongoDB, a NoSQL database, is known for its flexible schema, which allows you to store documents without the need to define the structure of the data in advance. This flexibility is often an advantage, but it can also lead......

MongoDB Shell: How to Execute Queries Saved in a File

Updated: Feb 02, 2024

Introduction MongoDB is a powerful NoSQL database favored for its scalability, flexibility, and performance. Developers often interact with it using the MongoDB Shell, better known as mongo, which is one of the most accessible and......

3 ways to create a new database in MongoDB

Updated: Feb 01, 2024

Introduction MongoDB, as a leading NoSQL database, offers flexibility in managing and storing data. While defining a database schema upfront isn’t required, you may want to create a new database for organizing data for different......

How to migrate from MySQL to MongoDB

Updated: Feb 01, 2024

Introduction Migrating from a traditional relational database like MySQL to a NoSQL database such as MongoDB requires understanding the differences between the two and careful planning. The following tutorial will guide you through the......

MongoDB: 3 ways to dump/export a database to a JSON or CSV file

Updated: Feb 01, 2024

Introduction MongoDB, being a leading NoSQL database, offers powerful ways to export data in various formats, including JSON and CSV. Exporting data is crucial for tasks like data analysis, migration, backups, or sharing datasets. This......

When not to use MongoDB and why?

Updated: Feb 01, 2024

Introduction MongoDB is a popular NoSQL database widely used for its flexibility, scalability, and performance. However, it is essential to know that it might not always be the ideal choice for all applications. In this tutorial, we......

What is the Default Port of MongoDB and How to Change It

Updated: Feb 01, 2024

Overview MongoDB, a prominent NoSQL database used for high volume data storage, operates over a default port which is essential for connections between your application and the database server. For security, flexibility or due to......