0
目前,我有以下結構的火力地堡數據庫火力地堡 - 查詢的扁平數據與雙向關係
// Tracking two-way relationships between users and groups {
" users": {
"mchen": {
"name": "Mary Chen",
"groups": {
"alpha": true,
"charlie": true
}
},
...
}, "groups": {
"alpha": {
"name": "Alpha Group",
"members": {
"mchen": true,
"donald": true
}
}, "bravo": {
"name": "Bravo Group",
"members": {
"mickey": true,
"donald": true
}
},
...
}
}
如何編寫一個查詢給我看所有的組一組給定用戶的共同點。即向我展示米奇和唐納德都註冊過的所有團體。
你還嘗試過什麼嗎? –