问题描述
在新的 Firebase 控制台中,我无法编辑实时数据库的名称、克隆或移动任何节点(更改父节点)
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 ?
推荐答案
确实无法在 Firebase 数据库控制台中克隆节点或重命名键.由于 Firebase 数据库 API 没有克隆/重命名操作,因此我们在 UI 中也没有等效项.
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.
请注意,出于同样的原因,在之前的 Firebase 仪表板中也无法执行此操作.它与您的安全规则或新版本无关.
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:
- 转到Firebase 控制台中的数据库"标签
- 导航您的 JSON 树,直到您选择了要移动的节点
- 打开右侧的溢出菜单(三个垂直点:)并选择.将文件保存到本地磁盘.
- 从 JSON 树中删除节点
- 将 JSON 树导航到要移动数据的位置
- 打开右侧的溢出菜单(三个垂直点:)并选择 .从本地磁盘中选择文件.
- 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 . 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 . Select the file from your local disk.
这篇关于在新的 Firebase 控制台中,我无法编辑实时数据库的任何节点的名称,也无法移动或克隆任何节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!