简体   繁体   中英

How to access root child in firebase Realtime Database using pyrebase

This is the picture of the realtime database structure. 实时数据库结构

The issue is I'm trying to access the root node with get() function. Considering the first node from the root branch, I want access to 2sdkfpjLZqWyWvWzE00zxhzxZFN2 . Considering db as the database ref, using db.get() or db.child().get() doesn't work that way. I want to access with get() function so that I can access the given example like node.

You need to try with this method.

In pyrebase github page have this method to use child elenent.

db.child("files").child(Myktii.....).get().val(creator)

https://github.com/nhorvath/Pyrebase4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM