0

Let's say I have a value at

"/nullable/uid/"

and it has this line:

daily_rep: 10

and so, how to make this daily_rep become 0 every day, let's say at 22: 00

what do you need to do for this? for example, use Firebase Functions?

1 Answers1

0

There is no built-in functionality for such operations in the Firebase Realtime Database, so you'll need to use an external mechanism to perform such an operation.

Cloud Functions for Firebase are definitely a great option for this, as they have a built-in capability to run functions on a schedule. But honestly, any other place where you can run code on a schedule could probably work too, as long as you can access the database through one of the Firebase SDKs or through the REST API.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • Firebase Functions maybe? –  Jan 08 '21 at 18:39
  • That is (for all intents and purposes of this question) the same Cloud Functions for Firebase. See https://stackoverflow.com/questions/42854865/what-is-the-difference-between-cloud-functions-and-firebase-functions if you'd like to learn the subtle differences. – Frank van Puffelen Jan 08 '21 at 19:02