CRUD in MongoDB Compass
CRUD IN MONGODB COMPASS
Introduction : -
MongoDB Compass is the official graphical user interface (GUI) for MongoDB, making it easy for beginners and developers to visualize and manage their data. In this guide, we’ll walk through how to perform CRUD (Create, Read, Update, Delete) operations using MongoDB Compass — no code required!
CRUD stands for:
-
C – Create (Add new data)
-
R – Read (View or search data)
-
U – Update (Modify existing data)
-
D – Delete (Remove data)
Step 1: Connect to MongoDB in Compass
1.Open MongoDB Compass.
2.Click Connect.
3.Enter a Collection Name (e.g., age).
school → students
).Simply open your collection. All documents will be displayed.
Filter/Search:
-
Use the “Filter” bar at the top.
-
Example: Find students name in database.
-
Hover over the document you want to update.
-
Click the pencil/edit icon (🖉).
-
Edit fields directly in the JSON:
-
Change
"age": 21
to"age": 34.
-
-
Click Update.
4. DELETE – Remove Documents
To delete a document:
-
Find the document you want to delete.
-
Click the trash bin icon on the right side.
-
Confirm deletion.
Conclusion -
MongoDB Compass makes database operations visual and intuitive. Whether you're a beginner learning MongoDB or a developer managing live data, understanding how to perform CRUD operations through Compass is a must-have skill.
University: Sri Balaji University, Pune
School: School of Computer Studies
Course: BCA (Bachelor of Computer Applications)
Interests: NoSQL, MongoDB, and related technologies
📸 Instagram 🔗 LinkedIn 🌐 Official Website
Excellent Work ..
ReplyDeletenicely explain
ReplyDeleteExcellent
ReplyDeleteGreat Explanation!
ReplyDeleteWell explained Blog Good Job 👍
ReplyDeleteGreat one
ReplyDeleteGreat one
ReplyDeleteGood explanation
ReplyDeleteWell Explained!
ReplyDeleteWell explained
ReplyDelete