再網上找了很多都沒有解決
上樹
{
"_id": "100",
"name": "集團總部",
"child": [{
"_id": "110",
"name": "集團華中部",
"child": [{
"_id": "111",
"name": "華東部財務組",
"child": []
}, {
"_id": "112",
"name": "華東部研發組",
"child": []
}]
},
{
"_id": "120",
"name": "集團華東部",
"child": []
}
]
}
請大神如何操作處理復雜模型?
例如,我想查詢name是 "華東部財務組" 這條資料
uj5u.com熱心網友回復:
https://docs.mongodb.com/manual/tutorial/model-tree-structures/轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/93778.html
標籤:MongoDB
上一篇:請您指教SQL查詢陳述句
