【发布时间】:2015-09-07 17:22:22
【问题描述】:
我的 Firebase 数组具有以下结构:
[
{
'userId': '12345',
'itemOrdered' : 'abc',
'status': 'pending'
...other attributes
},
{
'userId': '6789',
'itemOrdered' : 'def',
'status' : 'pending',
...other attributes
},
{
'userId': '12345',
'itemOrdered' : 'def',
'status' : 'complete',
...other attributes
},
]
我不知道如何检索以下数据:
- 获取 userId = xxx 的记录
- 获取 'itemOrdered" = 'def' 的所有记录
Firebase 文档谈论使用 orderByChild 但这没有多大意义。
【问题讨论】:
标签: firebase firebase-realtime-database