【发布时间】:2017-12-04 21:42:46
【问题描述】:
我有一个结构大致类似的数据库
// An index to track Ada's memberships
{
"users": {
"alovelace": {
"name": "Ada Lovelace",
// Index Ada's groups in her profile
"groups": {
// the value here doesn't matter, just that the key exists
"techpioneers": true,
"womentechmakers": true
}
},
...
},
"groups": {
"techpioneers": {
"name": "Historical Tech Pioneers",
"members": {
"alovelace": true,
"ghopper": true,
"eclarke": true
}
},
...
}
}
但我不知道如何选择属于同一组成员的用户
【问题讨论】:
-
到目前为止您尝试过什么?分享一些代码。
标签: android firebase-realtime-database nosql