MONGODB IN ACTION : BUILDING A SMART STUDENT DATABASE WITH CRUD OPERATIONS
dev.to·6h·
Discuss: DEV
Flag this post

🧩 Short Introduction (for your blog / LinkedIn post) 📘 Introduction

In this task, I explored how to perform CRUD operations (Create, Read, Update, Delete) using MongoDB, a popular NoSQL database that stores data in JSON-like documents.

MongoDB is flexible and schema-less, making it perfect for applications where data structure can evolve over time. To understand how it works, I created a simple students collection to manage college student records, and performed all CRUD operations step-by-step. 🏗️ Step 1: Create Collection & Insert Documents db.students.insertMany([ { “student_id”: “S001”, “name”: “Santhosh”, “age”: 20, “department”: “CSBS”, “year”: 2, “cgpa”: 9.0 }, { “student_id”: “S002”, “name”: “Priya”, “age”: 21, “department”: “IT”, “year”: 3, “cgpa”: 8.7 }, { “s…

Similar Posts

Loading similar posts...