Thuta Learning
ရှာဖွေရန်
BasicData & Databasesintermediate

Documents & Collections

စိတ်လျှော့ပါ။ ဒီခန်းကို စာအုပ်လိုမဟုတ်ဘဲ စကားပြောသလိုပဲ၊ နားလည်လွယ်အောင် ရှင်းပါမယ်။

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 ကို အသုံးပြုသွားပါမည်)
Documents & Collections | Thuta Learning