How to display List Gotten from Firebase Database and mongoDB simultaneously

66 Views Asked by At

I'm having an issues implementing Firebase Database and mongoDb, its confusing I know but here is the issue

In my Firebase Database, I implemented geofire, I set the keys of each geofire documents to be the same as the one I used to save each users for mongo db so I can easily access nearby users by their id i.e(objectID == GeoFire key).

Geofire is returning a list now , I tried looping through the list and fetching data from my mongodb server via retrofit (I'm on Kotlin) but every time I only get one user . I have 3 users in the geofire , all within range. I want to fetch their images from my server and I don't want to save the images on Firebase, please help

0

There are 0 best solutions below