I’m using Firebase and I’d like to increase/decrease a global counter on users’ input (a sort of social “like”).
Firebase handles concurrent modifications with transaction operation: you send to Firebase a request to increase/decrease the current value stored in Firebase, without sending the specific value from the app that could be outdated.
Is there a way to do this with appybuilder?
Otherwise you have to:
a- get the value
b- on user request, re-get the value (or keep it updated as possible we onchange)
c- send the increase request
that probably will work for most cases, but if this can be implemented in a stronger way since the beginning I’d like to do it.
PS: Another solution could be a Firebase function,but I’d like to avoid a server implementation