我希望通过REST api“获取”来自我的firebase JSON的第一层信息,而不需要每个对象都有任何嵌套数组。我怎样才能使用firebase,以避免必须下载整个数据集?
即。从下面的JSON我只想回来:
{ "people":[
{"name":"bob"},
{"name":"dave"}
]}
完整数据
{
"people":[
{
"name":"bob",
"measurements":[
{
"measname":"first test",
"weights":[
{
"device":"scaleA",
"weight":78.0
},
{
"device":"scaleA",
"weight":78.2
}
]
}
]
},
{
"name":"bob",
"measurements":[
{
"measname":"first test",
"weights":[
{
"device":"scaleA",
"weight":78.0
},
{
"device":"scaleA",
"weight":78.2
}
]
}
]
}
]
}