1
我有一个非规范化的数据如下:如何从浅层检索任意Firebase儿童?
- geohash
- w22
- qt4
- vhy
- e1c
- IzjfhqsUhJU_XQSBGTv
- authorid:
- authorname:
- content:
-Izjv10JcaS7fae6dmqb
- authorid:
- authorname:
- content:
- vhz
- erc
-Izjv10JcaS7fae6dmqb
- authorid:
- authorname:
- content:
- z99
- qt4
- abd
- 4g5
-Izjv10JcaS7fae6dmqb
- authorid:
- authorname:
- content:
我想列出geohash/w22/qt4
下authorid, authorname, content
所有值。但是我不知道孩子的名字是什么,或者究竟有多少人在这个层次上。
该代码应该如何枚举subchildren在这个浅层次?
var fooRef = new Firebase('firebaseRef/geohash/w22/qt4');
fooRef.on('child_added', function(snapshot) {
//Need help here.
});
谢谢你对我很清楚 – vzhen