问题
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:
- Go to the Database tab in your Firebase Console
- Navigate your JSON tree until you've selected the node that you want to move
- Open the overflow menu (three vertical dots: ⋮) on the right and select Export JSON. Save the file to your local disk.
- Delete the node from the JSON tree
- Navigate your JSON tree to the location where you want to move the data
- 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