I have a denormalized data as follows:
- 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:
I want to list all values for authorid, authorname, content
under geohash/w22/qt4
. But I don't know ahead of time what the children names are or exactly how many are at that level in the hierarchy.
What should the code look like to enumerate the subchildren at this shallow level?
var fooRef = new Firebase('firebaseRef/geohash/w22/qt4');
fooRef.on('child_added', function(snapshot) {
//Need help here.
});