Firebase Query Double Nested

后端 未结 3 1296
清歌不尽
清歌不尽 2020-11-21 04:45

Given the data structure below in firebase, i want to run a query to retrieve the blog \'efg\'. I don\'t know the user id at this point.

{Users :
     \"123         


        
3条回答
  •  再見小時候
    2020-11-21 05:34

    It's actually super easy - just use foreslash:

    db.ref('Users').child("userid/name")
    db.ref('Users').child("userid/blogs")
    db.ref('Users').child("userid/blogs/abc")
    

    No need of loops or anything more.

提交回复
热议问题