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

Find One Document

MongoDBသင်ခန်းစာ 8

ကိုက်ညီသော document တစ်ခုတည်းကိုသာ ရှာဖွေရန် findOne() method ကိုသုံးသည်။

javascript
db.inventory.findOne( { item: "paper" } )
You should see
{ _id: ObjectId("..."), item: 'paper', qty: 100, tags: [ 'white', 'blank' ] }

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

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

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

Find One Document | Thuta Learning