CRUD using MongoDB Atlas UI

                                   CRUD Using MongoDB Atlas UI


Introduction

When working with databases, CRUD operations—Create, Read, Update, and Delete—are the fundamental building blocks of any application. While developers often interact with databases through code, MongoDB Atlas provides a powerful and user-friendly UI (User Interface) that allows you to perform these operations directly from your browser.

MongoDB Atlas is the cloud-based database service for MongoDB, offering scalability, high availability, and security out of the box. It simplifies the process of managing your database and is ideal for developers, testers, and even non-technical stakeholders who need access to the data.

In this blog, we'll walk through how to perform CRUD operations using the MongoDB Atlas UI, without writing a single line of code. This is especially helpful for beginners or those looking to explore MongoDB in a visual, hands-on way.


Prerequisites

Before you begin, make sure you have the following:

  • A MongoDB Atlas account (free tier is enough).

  • A basic understanding of database terms like collections and documents.

  • Access to your Atlas cluster.



Step 1: Set Up Your MongoDB Atlas Cluster
1.Sign in or create a MongoDB Atlas account.

2.Create a new cluster:
  • Choose the Free Shared Cluster (M0 tier).
  • Select your cloud provider and region.
  • Name your cluster and click Create.

3.Set up database access:

  • Go to Database Access under the Security tab.
  • Create a database user with a username and password.
  • Make sure to save these credentials.

4.Whitelist your IP address:

  • Go to Network Access and click Add IP Address.
  • Choose “Allow access from anywhere” for testing purposes or your current IP.




5.Wait for cluster deployment.
  • This may take 5–10 minutes.



Step 2: Create a Database and Collection Using the UI
  1. Go to your Cluster dashboard.

  2. Click on the “Browse Collections” button.

  3. Click “Create Database”:

    • Enter a Database Name (e.g., nikhil_db)

    • Enter a Collection Name (e.g., infocollection)

    • Click Create

   Now you're ready to start performing CRUD operations.


Step 3: Create Documents (C in CRUD)

1.In your newly created collection (e.g., infocollection), click “Insert Document”.

2.Fill in fields like:

{

  "name": "John Doe",

  "age": 30,

  "email": "john@example.com"

}

3.Click Insert.


You’ve now created your first document!


Step 4: Read Documents (R in CRUD)

  1. Go to your Collection

  2. Use the filter bar to find specific documents:

           Example : { "age": { "$gte": 30 } }





Step 5: Update Documents (U in CRUD)
  1. Find the document you want to update.
  2. Click "Edit" (pencil icon on the right).
  3. Make your changes: Example: change "age": 30 to "age": 31
  4. Click Update.
              
Changes are saved immediately.





Step 6: Delete Documents (D in CRUD)
  1. Locate the document.

  2. Click the trash can icon to delete.

  3. Confirm the deletion.

      

   


Working with Multiple Collections and Schemas

MongoDB is schema-less, meaning each document can have different fields. However, you can maintain consistency by manually following a structure in your collections. You can also:

  • Add new collections to the same database.

  • Use Embedded Documents and Arrays for complex data models.




Conclusion

Using the MongoDB Atlas UI is a great way to learn how MongoDB works without diving into code immediately. Whether you’re building a prototype, managing data manually, or teaching database concepts, the UI provides an intuitive and efficient way to handle CRUD operations.

As you get more comfortable, you can connect your applications to MongoDB Atlas using drivers (Node.js, Python, Java, etc.) and scale your operations programmatically.






Nikhil Ingole (BCA2302261)
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




Comments

  1. Great Explanation! Thanks for sharing this helpful information stepwise.

    ReplyDelete
  2. Informative post! Loved how you explained CRUD operations using MongoDB Atlas.

    ReplyDelete
  3. Very helpful guide on implementing CRUD with MongoDB Atlas — clear and concise!

    ReplyDelete
  4. Excellent walkthrough of CRUD functionality with MongoDB Atlas—easy to follow and practical!

    ReplyDelete
  5. Great explanation of CRUD operations using MongoDB Atlas.
    This made learning database interactions much easier!

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. This blog clearly breaks down CRUD with MongoDB Atlas.
    The step-by-step approach is really easy to follow!

    ReplyDelete
  9. Clear explanation of CRUD using MongoDB Atlas. Easy to understand and implement.

    ReplyDelete
  10. Very user friendly explanation, excellent work keep it up 🙌🏻👍🏻

    ReplyDelete
  11. Great job! The way you explained the topic made it so easy to understand.

    ReplyDelete
  12. Great blog on CRUD using MongoDB Atlas efficiently

    ReplyDelete
  13. "Great insights! Thanks for sharing this."

    ReplyDelete

Post a Comment

Popular posts from this blog

Query Operator's

Creating Documents in MongoDB(Insert)