انتقل إلى المحتوى الرئيسي

collections

الوصف

  • المجموعات المتعلقة بالسياق الحالي. قد تكون قائمة أو مجموعة واحدة.

المصدر

  • إذا كانت موجودة: {{collections}}
  • إذا كانت مفردة: {{collection}}

النوع

  • Array من collection أو object مجموعة

المجموعة (الحقول الرئيسية)

  • _id، title، slug، handle، image{fileUrl}، description، operation، productCount

أمثلة

قائمة

[
{
"_id": "68beb43c25aa91736821813e",
"app": "689063e353b3d912b37a3564",
"title": "Tsf",
"slug": "tsf",
"handle": "tsf",
"image": {
"_id": "68907c4ec33f2324307f4813",
"file": "1754299469669-197439032.webp",
"app": "689063e353b3d912b37a3564",
"id": "68907c4ec33f2324307f4813",
"fileUrl": "https://cdn.qumra.cloud/media/689063e353b3d912b37a3564/1754299469669-197439032.webp"
},
"description": "Tvtvttg",
"operation": "manual",
"deleted": false,
"createdAt": "2025-09-08T10:47:24.850Z",
"updatedAt": "2025-09-08T10:47:24.850Z",
"id": "68beb43c25aa91736821813e",
"productCount": 3
}
]

مفردة

{
"_id": "68f8f5c610788325661edd44",
"title": "rwar",
"slug": "rwar",
"handle": "rwar",
"image": null,
"operation": "manual"
}

ملاحظات

  • الكود يُعيّن objectsData.collections مرتين: قائمة إذا كانت متاحة، ثم مجموعة واحدة إذا كانت موجودة.