How can I create a user with multiple attributes in Firebase with Swift?

后端 未结 2 580
深忆病人
深忆病人 2021-01-06 17:38

I am so new to Firebase (a couple of hours only) and still trying to absorb most of its concepts. I followed the documentation but still found no direct answer to my questio

2条回答
  •  不思量自难忘°
    2021-01-06 18:09

    Traditionally, you would create a /users node in Firebase that contains any other info you want to store about that user.

    Use the uid (user_id) as the node name for each user.

    users
      uid_0
       name: "Bill"
       food: "Pizza"
      uid_1
       name: "Ted"
       food: "Tacos"
    

    This question has been asked before so please try searching for questions similar to yours before asking.

    A bit more info here Firebase Users Node

提交回复
热议问题