在新的 Firebase 控制台中,我无法编辑实时数据库的任何节点的名称,也无法移动或克隆任何节点 [英] In the new Firebase console I can't edit the name of nor move nor clone any node of a realtime database

查看:15
本文介绍了在新的 Firebase 控制台中,我无法编辑实时数据库的任何节点的名称,也无法移动或克隆任何节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在新的 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:

  1. 转到Firebase 控制台中的数据库"标签
  2. 导航您的 JSON 树,直到您选择了要移动的节点
  3. 打开右侧的溢出菜单(三个垂直点:)并选择导出 JSON.将文件保存到本地磁盘.
  4. 从 JSON 树中删除节点
  5. 将 JSON 树导航到要移动数据的位置
  6. 打开右侧的溢出菜单(三个垂直点:)并选择 Import JSON.从本地磁盘中选择文件.
  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.

这篇关于在新的 Firebase 控制台中,我无法编辑实时数据库的任何节点的名称,也无法移动或克隆任何节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆