I'm new to Firebase and I'm using the Pyrebase library. I was able to authenticate successfully and I'm able to get data. The issue is, when I print the data out, it's printing out the reference object, not the actual data itself.
I've been searching online for a while and everything I've seen, shows that my code is correct. I've tried the .each
method, but that doesn't work.
results = db.child("test").get()
for i in results.each():
print(i)
What I'm expecting is the data from my json to be displayed. What's happening, is the object reference is being passed, but that doesn't do me any good.
What the results are:
<pyrebase.pyrebase.Pyre object at 0x03B48A90>
<pyrebase.pyrebase.Pyre object at 0x03B488D0>
<pyrebase.pyrebase.Pyre object at 0x03B48590>
Process finished with exit code 0