{"id":26562701,"url":"https://github.com/ak-pawar3125/internship-task-7","last_synced_at":"2026-04-30T11:32:03.509Z","repository":{"id":282756051,"uuid":"949556984","full_name":"Ak-pawar3125/Internship-Task-7","owner":"Ak-pawar3125","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-17T10:54:35.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T18:28:44.909Z","etag":null,"topics":["javascript","json","mongodb"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ak-pawar3125.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-16T18:08:08.000Z","updated_at":"2025-03-17T10:54:39.000Z","dependencies_parsed_at":"2025-03-16T19:46:44.554Z","dependency_job_id":null,"html_url":"https://github.com/Ak-pawar3125/Internship-Task-7","commit_stats":null,"previous_names":["ak-pawar3125/internship-task-7"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ak-pawar3125/Internship-Task-7","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ak-pawar3125%2FInternship-Task-7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ak-pawar3125%2FInternship-Task-7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ak-pawar3125%2FInternship-Task-7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ak-pawar3125%2FInternship-Task-7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ak-pawar3125","download_url":"https://codeload.github.com/Ak-pawar3125/Internship-Task-7/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ak-pawar3125%2FInternship-Task-7/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019060,"owners_count":26086517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","json","mongodb"],"created_at":"2025-03-22T15:18:42.427Z","updated_at":"2025-10-14T11:41:20.582Z","avatar_url":"https://github.com/Ak-pawar3125.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Internship-Task-7\n\n# CRUD Operations with MongoDB\n\nThis project demonstrates Create, Read, Update, and Delete (CRUD) operations in MongoDB for efficient data management in a MERN stack application.\n\n# 🚀 Responsibilities\n\n# 1️⃣ Create a Collection  \n- Set up a MongoDB database (using CLI, Compass, or programmatically).  \n- Define the document structure (e.g., a `users` collection with `name`, `email`, `age`).  \n- Insert sample data to initialize the collection.  \n\n# Example Document Structure:  \n{ \u003cbr\u003e\n  \"_id\": ObjectId(\"123abc\"),\u003cbr\u003e\n  \"name\": \"John Doe\",\u003cbr\u003e\n  \"email\": \"johndoe@example.com\",\u003cbr\u003e\n  \"age\": 25\u003cbr\u003e\n}\n\n# 2️⃣ Retrieve (Read) Data  \n- Fetch all documents from the collection.  \n- Filter records using specific criteria (e.g., users above age 20).  \n- Retrieve only necessary fields to optimize queries.  \n\n# Example Queries:  \n\ndb.Users.find(); // Fetch all users\u003cbr\u003e\ndb.Users.find({ age: { $gt: 20 } }); // Find users above 20\u003cbr\u003e\ndb.Users.find({}, { name: 1, email: 1 }); // Fetch only name \u0026 email\u003cbr\u003e\n\n\n# 3️⃣ Update Data in the Collection  \n\n- Modify existing records while keeping other fields unchanged.  \n- Perform targeted updates (update one or multiple documents).  \n- Verify changes after updating.  \n\n# Example Queries:  \n\ndb.users.updateOne({ email: \"johndoe@example.com\" }, { $set: { age: 30 } });\u003cbr\u003e\ndb.users.updateMany({ age: { $lt: 18 } }, { $set: { status: \"minor\" } });\u003cbr\u003e\n\n# 4️⃣ Delete Data from the Collection  \n\n- Remove individual records based on conditions.  \n- Delete multiple records if necessary.  \n- Drop the entire collection if no longer needed.  \n\n# Example Queries:  \n\ndb.users.deleteOne({ email: \"johndoe@example.com\" }); // Delete one user\u003cbr\u003e\ndb.users.deleteMany({ age: { $lt: 18 } }); // Delete all minors\u003cbr\u003e\ndb.users.drop(); // Drop the entire collection\u003cbr\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fak-pawar3125%2Finternship-task-7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fak-pawar3125%2Finternship-task-7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fak-pawar3125%2Finternship-task-7/lists"}