{"id":19608870,"url":"https://github.com/PratikRameshMajage/MongoDb","last_synced_at":"2025-04-27T20:33:08.416Z","repository":{"id":235429275,"uuid":"790581338","full_name":"PratikRameshMajage/MongoDb","owner":"PratikRameshMajage","description":"📚 MongoDB Notes 🍃 Welcome to the MongoDB Notes repository! 🎉 Here, you'll find a collection of well-organized and concise notes to help you master MongoDB, the leading NoSQL database 🚀. Whether you're a beginner or an experienced developer, these notes are designed to guide you through the core concepts and advanced features of MongoDB. 💻","archived":false,"fork":false,"pushed_at":"2024-12-04T04:43:48.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T15:53:09.365Z","etag":null,"topics":["collections","databases","documents","mongodb","mongodb-atlas","mongodb-compass","mongodb-shell","server"],"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/PratikRameshMajage.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":"2024-04-23T06:28:43.000Z","updated_at":"2024-12-04T04:49:13.000Z","dependencies_parsed_at":"2024-12-04T05:35:08.335Z","dependency_job_id":null,"html_url":"https://github.com/PratikRameshMajage/MongoDb","commit_stats":null,"previous_names":["pratikrameshmajage/mongoose","pratikrameshmajage/mongodb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PratikRameshMajage%2FMongoDb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PratikRameshMajage%2FMongoDb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PratikRameshMajage%2FMongoDb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PratikRameshMajage%2FMongoDb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PratikRameshMajage","download_url":"https://codeload.github.com/PratikRameshMajage/MongoDb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251204764,"owners_count":21552285,"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","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":["collections","databases","documents","mongodb","mongodb-atlas","mongodb-compass","mongodb-shell","server"],"created_at":"2024-11-11T10:18:06.176Z","updated_at":"2025-04-27T20:33:08.410Z","avatar_url":"https://github.com/PratikRameshMajage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![Logo](docs/leaf.svg) `Complete MongoDB Notes:`\n## `Introduction:`\n### `What is Mongodb:` \n- MongoDB is an Open-Sourse, Document-Oriented No-Sql Database Management System.\n- [Mongodb](https://www.github.com/mongodb/mongo)\n- Casendra, MySql, MongoDb, Oracle.\n- A Database that Stores Information in a Document. \n- In the Form of .JSON Format.\n- Designed for Flexibility, Scalability, and Performance in Handling Unstructure or Semi-Structure Data. \n### `More About Mongodb:`\n- MongoDb Software -\u003e 10gen -\u003e MongoDb\n- It was Created  by a company 10gen whisvh is now known as Mongodb, Inc. The company was founded by Eliot Horowitz and Dwight Merriman in 2007. the first version  of mongodb was release in 2009.  \n- Hu**mongo**us - Mongos\n\n|`SQl`|`NoSQl`|\n|---|-----|\n|SQL Database are Relational Databases.| NoSql Databsae are Non-Relational Databases.|\n|They use Structured tables to Store data in rows and columns.|Theey Provide Flexibility in data Storage, allowing  varied data types and Structure.|\n|Sutable for applications with well defined schemas and fixed data structures.|Ideal For Applications with Dynamic or evolving Data Models.|\n|E-Commarce Platform, Hr Management etc.|Content Management System (CMS), Social Media Platforms, Gaming etc.|\n|Examples: MySql, PostgreSQL, Oracle.|Examples: MongoDb, CAssendra, Redies|\n- SQl: Ingormation, Rows, Columns, Tables, Databases, Fix ROws \u0026 Columns - .sql\n- NoSQl: Collection: Students, 2-Documents, Embbeded Documents, Flexible - .json\n- Inside One Collections, We can have Multiple Documents.\n\n### `Mongodb Teminologies:`\n- `Database` - Multiple `Collections` - Multiple `Documents` (Schemaless)\n\n### `Key Features of Mongodb:`\n- Flexible Schemaless Design:\n    - Mongodb allows dynamic, Schemaless data Structures.\n    - Easily Accommodate Changing data requirements.\n- Scalability and Performance:\n    - Horizontal Scaling Supports large Datasets and High traffic.\n    - Optimize read and Write Operations for fast Performance.\n    - Document Oriented Storage\n- Dynamic Queries:\n    - Rich query language with support for complex queries. \n    - utilize index to speedup queryexecution.\n- Aggregation Framework (Inbult Functions): \n    - Perform advanced data transformations and analysis.(avg() - E-Commarce 5-Star Rating Review System)\n    - Process data using multiple pipeline stages.   \n- Open Source and Community: (Copy and Create your Own Database, Expert Suggest Changes)\n    - Mongodb is Open Source with a Vibrant Community.\n    - Regular Updates, Improvements, and Support.\n### `How Mongodb Works:`\n- Frontend: Html, CSS, JS, React.js, Next.Js.\n- Backend: Node.js, Express.js, Next.js, Python.\n- Database: Mongodb Server, Storage Engine (WiredTiger or MMAPV1-❌), Read \u0026 Write Data Files operations on Database  \n### `JSON VS BSON:`\n- json-\u003e .json Format, Easy to READ \u0026 WRITE | bson-\u003e .byte Binary Format, Not Easy to Read \u0026 Write. \n- In MongoDb, We Write in Json Format only but behind the scenes data is Stored in BSON (Binary JSON) Format, A Binary representation of JSON.\n- By Utilizing Bson, Mongodb can achive Higher read  and Write Speeds, reduced Storage Requirements, and improved data manipulation capabibilities making  it well-suited for handling large and complex datasets while maintaining performance effeciency.\n### `Installing Mongodb:`\n- [MongodB Community \u0026 Server](https://www.mongodb.com/try/download/community)\n- [MongodB Shell \u0026 Playground](https://www.mongodb.com/try/download/shell)\n- [MongodB Database Tools](https://www.mongodb.com/try/download/database-tools)\n### `MAnaging Database In Mongodb:`\n- Creating | Deleting Databases\n- Creating | Deleting Collections \n- You Won't see a database listed in the output of the show dbs command, until that database contain at least one collection with data in it.\n### `Managing Databases \u0026 Collections:`\n```bash\nshow dbs;\nuse \u003cdatabase_name\u003e;\ndb.dropDatabase();\n\nshow Collections;\ndb.createCollection(\"\u003ccollection_name\u003e\");\ndb.\u003ccollection_name\u003e.drop();\n```\n### `MongoDb Databases \u0026 Collections Commands:`\n```bash\nshow dbs;\nadmin      40.00 KiB\nconfig     72.00 KiB\nlocal     112.00 KiB\ntestapp1   96.00 KiB\n\nshow databases;\nadmin      40.00 KiB\nconfig     72.00 KiB\nlocal     112.00 KiB\ntestapp1   96.00 KiB\n\nuse students;\nswitched to db students\n\nshow collections;\n\ndb.createCollection(\"data\");\n{ ok: 1 }\n\nshow collections;\ndata\n\nshow databases;\nadmin      40.00 KiB\nconfig    108.00 KiB\nlocal     112.00 KiB\nstudents    8.00 KiB\ntestapp1   96.00 KiB\n\ndb.data.drop();\ntrue\n\nshow collections;\n\ndb.dropDatabase();\n{ ok: 1, dropped: 'students' }\n\nshow databases;\nadmin      40.00 KiB\nconfig    108.00 KiB\nlocal     112.00 KiB\ntestapp1   96.00 KiB\n```\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n- Delete ```node_modules``` Before Uploding on github.\n- Download Project in your pc:\n    - Intialise ```node_modules``` in your project by using ```npm install``` command:\n    - This will install ```mongoose``` in your dependancies in ```package.json```:\n- Download and Install MongoDb and It Will Automatically Start Your Server:\n    1. [MongodB Community \u0026 Server](https://www.mongodb.com/try/download/community)\n    2. [MongodB Shell \u0026 Playground](https://www.mongodb.com/try/download/shell)\n    3. [MongodB Database Tools](https://www.mongodb.com/try/download/database-tools)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPratikRameshMajage%2FMongoDb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPratikRameshMajage%2FMongoDb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPratikRameshMajage%2FMongoDb/lists"}