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 Snapshot Queries: A Practical Guide (with examples)

Updated: Feb 04, 2024

Introduction MongoDB, a widely-used NoSQL database, offers a plethora of querying capabilities that cater to the diverse needs of modern applications. Among its advanced features, snapshot queries stand out for their ability to capture......

How to iterate a cursor in mongosh (MongoDB Shell)

Updated: Feb 04, 2024

Introduction Iteeratinge over a cursor in MongoDB Shell (mongosh) is a fundamental operation that every MongoDB user should master. This tutorial covers how to work with cursors, from the essentials of generating a cursor using......

MongoDB: Find documents whose array contains a specific value

Updated: Feb 04, 2024

Introduction Finding documents in a MongoDB database that contain an array with a specific value is a common task for developers. This tutorial will explore various scenarios, ranging from basic finds to more complex searches, to help......

MongoDB: How to perform case-insensitive search (with examples)

Updated: Feb 04, 2024

Introduction When working with MongoDB, a NoSQL database, searching through vast collections of data efficiently can often be a crucial requirement for various applications. There might be scenarios where the exact case of the search......

Partial Index and Partial Filter in MongoDB: A Practical Guide

Updated: Feb 03, 2024

Introduction When optimizing query performance or managing disk space usage in MongoDB, partial indexes and partial filters present as invaluable tools. This tutorial provides practical insights into how and when to use partial......

Working with the $unwind stage in MongoDB

Updated: Feb 03, 2024

In this comprehensive guide, we delve into the intricacies of the $unwind stage in MongoDB’s aggregation framework. This powerful operator is essential for developers looking to deconstruct array fields within their documents to......

MongoDB: How to reset root password on Ubuntu

Updated: Feb 03, 2024

Introduction Securing your MongoDB database is paramount, especially when dealing with sensitive or valuable information. Occasionally, you might find yourself in a situation where you need to reset the root password for MongoDB on an......