问题
Transaction is an atomic process but that means we need to read the data prior to incrementing it.
We can easily implement ServerValue.increment(1)
in Node.js but in Flutter we only have ServerValue.timestamp
according to the documentation here although the Google documentation has it
And so far I search I haven't found anything yet. Am I missing something?
来源:https://stackoverflow.com/questions/63275901/does-realtime-database-has-atomic-increment-method-for-flutter-like-servervalue