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

Find All Documents

MongoDBသင်ခန်းစာ 7

Collection ထဲရှိ document အားလုံးကို ရှာဖွေရန် find() method ကို empty query filter ({}) ဖြင့် အသုံးပြုသည်။

javascript
db.inventory.find( {} )
You should see
{ _id: ..., item: "journal", qty: 25, ... } { _id: ..., item: "notebook", qty: 50, ... } { _id: ..., item: "paper", qty: 100, ... } ...

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

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

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

Find All Documents | Thuta Learning