Does Realtime database has atomic increment method for Flutter like ServerValue.increment?

痴心易碎 提交于 2021-01-28 21:12:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!