In the new Firebase console I can't edit the name of nor move nor clone any node of a realtime database

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-28 16:54:29

问题


In the new Firebase console I can't edit the name of nor clone nor move any node (change parent) of a realtime database

I have even tested setting Rules to Public.

Is this by design ? What then, is the use of this console ? ONLY to change child values ?


回答1:


There is indeed no way to clone a node or rename a key in the Firebase Database console. Since the Firebase Database API doesn't have a clone/rename operation, we also don't have an equivalent in the UI.

Note that this operation also wasn't possible in the previous Firebase Dashboard, for the same reason. It has nothing to do with your security rules nor with the new release.

If you want to move a node to a new location, you'll have to emulate it:

  1. Go to the Database tab in your Firebase Console
  2. Navigate your JSON tree until you've selected the node that you want to move
  3. Open the overflow menu (three vertical dots: ) on the right and select Export JSON. Save the file to your local disk.
  4. Delete the node from the JSON tree
  5. Navigate your JSON tree to the location where you want to move the data
  6. Open the overflow menu (three vertical dots: ) on the right and select Import JSON. Select the file from your local disk.


来源:https://stackoverflow.com/questions/38997242/in-the-new-firebase-console-i-cant-edit-the-name-of-nor-move-nor-clone-any-node

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