DEV Community

Varsha G
Varsha G

Posted on

MangoDB CRUD

Getting Hands-On with MongoDB Atlas: CRUD Operations Made Simple
Hey devs

I recently dove into MongoDB Atlas to explore how CRUD operations work in a cloud-hosted NoSQL environment—and I wanted to share a few insights and screenshots from my journey. If you're just getting started with MongoDB or curious about how Atlas simplifies database management, this post is for you!

What I Built
I created a database named CRUD and a collection called students. Using the Atlas UI, I performed basic operations like:

Insert: Added student records with fields like name, age, year, and department.

Query: Filtered documents using operators like $gt, $or, and range queries with $gte and $lte.

Update: Modified fields directly in the UI—super intuitive!

Delete: Flagged documents for deletion with a simple click.

Sample Queries I Used
Here are a few examples of queries I ran:

js
// Find students with student_id greater than 5000
{ "student_id": { "$gt": "5000" } }

// Find students aged either 1 or 3
{ "$or": [ { "age": 1 }, { "age": 3 } ] }

// Find students aged between 1.5 and 7.5
{ "age": { "$gte": 1.5, "$lte": 7.5 } }
Screenshots
I’ve included screenshots showing:

How documents are structured in MongoDB Atlas

How filters are applied and results are displayed

How easy it is to modify or delete documents

These visuals really help demystify the process for beginners.

Why MongoDB Atlas?
No setup headaches—just launch and go.

Built-in UI for managing data without writing shell commands.

Great for prototyping and learning NoSQL concepts.





Top comments (0)