Open
Description
Hi, I have a use case of updating a counter field in the realtime db, and i am looking for this ServerValue.Increment()
API, seems not supported in golang sdk.
I want to update this field on the server side without having to read the original value and do not need to worry about multi-write conflicts.
- The doc for ServerValue.Increment():
https://firebase.google.com/docs/database/web/read-and-write#atomic_server-side_increments\\
- And a ref about the performance gain compare to transactional update:
https://www.faqcode4u.com/faq/59074/how-quickly-can-you-atomically-increment-a-value-on-the-firebase-realtime-database