← Back to MongoDB Course | Chapter 1: Introduction | Lesson 1 of 7

MongoDB क्या है

MongoDB एक database है जो आपका data fixed tables में rows की बजाय flexible, JSON-like documents की तरह store करता है।

MongoDB क्या है

MongoDB एक open-source document database है। Records field और value pairs से बने documents की तरह store होते हैं, collections में grouped, और हर document का अपना shape हो सकता है।

यह sharding से horizontally scale होता है, high availability के लिए replicate करता है, और एक rich JSON-based language से query होता है।

Note: एक document को एक JavaScript object की तरह सोचें जो database में रहता है।

उदाहरण: What is MongoDB

bash
test> db.users.insertOne({ name: "Ada", age: 36, skills: ["math", "code"] })
{
  acknowledged: true,
  insertedId: ObjectId('65a1b2c3d4e5f60718293a4b')
}
test> db.users.findOne()
{
  _id: ObjectId('65a1b2c3d4e5f60718293a4b'),
  name: 'Ada',
  age: 36,
  skills: [ 'math', 'code' ]
}

⚠️ Run this in your own terminal or Node.js environment.

Related Topics
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the view already swaps in the hi_ translation fields (or blanks these out if untranslated), so this renders correctly for both languages without a lang_code check here. #}
आम गलतियां
  1. यह सोचना कि MongoDB में बिल्कुल कोई structure नहीं है
  2. इसे SQL tables के लिए एक drop-in replacement की तरह treat करना
  3. schemaless होने की वजह से indexes ignore करना
चैप्टर सारांश
  • MongoDB एक document database है
  • Data JSON-like documents में रहता है
  • Documents collections में grouped हैं
  • यह scale out और replicate करता है
🔒

Chapter Quiz — Complete all 7 topics to unlock

0/7 topics done

Complete these topics first:

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.