I've got a database that looks like this:
I want to reset the Patient_List
and Current_Token
children to 0 at a particular time (say 12 AM) automatically for all the users in the database.
I went through the Firebase cloud function docs and these projects on gitHub:
Deleting nodes and Delete unused user accounts using Cron.
Both of the above examples update and change data based on a particular UID i.e update only particular nodes based on the UID passed.
I would like to know if it is possible to update values for the above child elements in all the nodes and if so , how would it be done?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…