Creating logic inside Firebase

Is there a way to implement the logic on the Firebase side and not on the client side?

The question is, I want to implement an auto increment counter when sending messages to the Firebase database, I know that I can use transactions, but sometimes the counter does not update properly. That's why I want to know if there is a way to implement this logic inside Firebase so that it updates the counter as soon as the message arrives in the Firebase database.

+4
source share
1 answer

After working with Firebase, I found that on the firebase server side, only the validation rule is executed, you cannot edit your data on the firebase server.

- ,

Firebase - (, AWS Google ..) - .

+2

Source: https://habr.com/ru/post/1653739/


All Articles