firebase

Firestore updates using python api are not persisting

Firestore updates using python api are not persisting Question: I have the following code. from firebase_admin import firestore db = firestore.client() collection = db.collection(‘word_lists’) word_list = collection.get() for item in word_list: item_dict = item.to_dict() print item_dict[‘next_practice_date’] item.reference.update({‘next_practice_date’: 0.0}) When I run the code the first time everything is fine, no errors. The second time I …

Total answers: 2

Add new key value pair to existing Firebase

Add new key value pair to existing Firebase Question: This might be a pretty basic question, but so far I can’t find the answer to my problem online after much googling. I have a firebase web app where the data structure is pretty simple. Initially, it’s empty, like this: fireRef { } I want to …

Total answers: 3