I wanted to clarify how to update existing data in my Firebase Realtime Database.
- users
- 12313123
- isAuth: "True"
- didPay: "True"
- ...
So the user class looks like:
class User(
val isAuth: String,
val didPay: String
...
)
I already have 100x existing users. How can I add to my User model class now one more property that would be automatically added to all users? Do I've to do change for "creating" new users + automatically run a function to update all existing users or is there a simpler way?
class User(
val userName: String,
val isAuth: String,
val didPay: String
...
)