I have a case where I fetch document keys(really document ids) from realtime database using a GeoFire query like so:
GeoFire geoFire = new GeoFire(DATABASE_RE