Skip to main content
DevTools24

منشئ استعلامات MongoDB

بناء استعلامات MongoDB بصرياً. إنشاء استعلامات find و aggregate و update مع منشئ شروط.

db.users.find({
  "status": "active"
})
const result = await db.collection("users").find(
  {
    "status": "active"
  }
).toArray();

MongoDB Queries - التفاصيل التقنية

MongoDB uses JSON-like documents for queries. Use find() with query filters, projection for field selection, and sort/limit/skip for pagination. Aggregation pipeline stages like $match, $group, $project enable complex data transformations.

بديل سطر الأوامر

// Find with conditions\ndb.users.find(\n  { age: { $gte: 18 } },\n  { name: 1, email: 1 }\n).sort({ name: 1 })

المرجع

عرض المواصفات الرسمية