Firebase : How To Get key in order after Delete key

狂风中的少年 提交于 2020-02-16 07:45:08

问题


example

How to keep the key sequence after Delete? I want it to be 0..1..2..3..etc


回答1:


You cannot change the name of your keys, there is no API for doing that. If you want to change the name of a key you need to copy that particular object to another location, change the name and delete the old one. But to change the name of key is not possible in Firebase.



来源:https://stackoverflow.com/questions/50538772/firebase-how-to-get-key-in-order-after-delete-key

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