So right now in test mode, when I want to add a new field value into my class, I just add it into firebase as well. And Codable will do the work and parse the data from firebase fine. But let's say my app has been released and I have 5k users, that is 5k user's I have to manually add the data or they will all have errors in fetching data because their User class has a new value while the data in firebase doesn't or vice versa.
Is there a workaround for this? I am thinking that it can be fixed by posting to firebase on the client side again so the field values end up matching. But I have another collection that doesn't allow user writes and only reads. My only thought is to create a cloud function and add the new field to all collections.
If I parse it normally using dictionary mapping, I can have new values be optional. Should I just use dict mapping instead of codable? Dict mapping, however is very ugly and long.