Thuta Learning
MongoDB
BasicData & Databasesအလယ်အလတ်

Documents & Collections

MongoDBသင်ခန်းစာ 4

MongoDB ၏ အဓိက အခြေခံနှစ်ခုမှာ Collections နှင့် Documents ဖြစ်သည်။

• Document: field နှင့် value pairs များဖြင့် ဖွဲ့စည်းထားသော BSON object တစ်ခုဖြစ်သည်။ SQL table မှ row တစ်ခုနှင့် တူသည်။

• Collection: Documents များကို စုစည်းထားသော group တစ်ခုဖြစ်သည်။ SQL database မှ table တစ်ခုနှင့် တူသည်။

javascript
// We will use a collection named 'inventory' for our examples.
// Sample documents:
{ "item": "journal", "qty": 25, "tags": ["blank", "red"] }
{ "item": "notebook", "qty": 50, "tags": ["red", "blank"] }
{ "item": "paper", "qty": 100, "tags": ["white", "blank"] }
You should see
(ဤသင်ခန်းစာများတွင် ဤ inventory collection ကို အသုံးပြုသွားပါမည်)

နောက်ဆုံးပြင်ဆင်ရက်

Progress ကို ဤ browser (ဤစက်) တွင်သာ သိမ်းထားပါသည်။ အခြားစက်များနှင့် sync မလုပ်ပါ။

ဤသင်ခန်းစာတွင် အမှားတွေ့ပါက အကြောင်းကြားရန်သင့် email app ကို ဤသင်ခန်းစာလိပ်စာ ဖြည့်ပြီးသားဖြင့် ဖွင့်ပေးပါမည် — သင်ကိုယ်တိုင် ပို့မှသာ ပို့မည်ဖြစ်သည်။

Documents & Collections | Thuta Learning