Firebase Retrieving Data in Swift

后端 未结 6 2177
长情又很酷
长情又很酷 2020-12-14 12:35

I\'m trying to retrieve specific data from just the currently logged in user. My data in my database looks like this:

6条回答
  •  暖寄归人
    2020-12-14 13:01

    {
        "rules": {
             "tbl_name": {
                ".indexOn": ["field_name1", "field_name2"]
             },
        ".read": true,
        ".write": true
        }
    }
    

    You can apply indexOn on any field. Add this json in rules security and rules tab. Hope this works for you. :)

提交回复
热议问题