我在蒙戈分貝以下JSON對象中,有在文檔中周圍300對象,什麼是檢索所有category
下ticket.seating,如何獲取嵌套文檔下的所有類別?
{ "_id": "58a1ddcb8850c027298c4dc8", "name": "Listing 1",
"description": "", "ticket": {
"amount": 2,
"type": "electronic",
"splitType": 2,
"seating": [
{
"category": 1,
"section": 2,
"row": 2
},
{
"category": 3,
"section": "uiui",
"row": 33
}
] }, "metadata": {
"user": {},
"event": {},
"venue": {} }, "listingId": "aabb1cb6-4e79-4d48-9451-e5247230d397" }
預計產量查詢:
1,3
所有不同的類別請加預期輸出 – felix
@felix上述 – user2280016