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

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

问题描述

在新的Firebase控制台中,我无法编辑或克隆实体数据库的名称,也不能移动任何节点(更改父级)。我甚至已经测试了设置规则公开。

这是由设计吗?那么,这个控制台的使用呢?仅用于更改子值?

解决方案

确实没有办法在Firebase数据库控制台中克隆节点或重命名密钥。由于Firebase数据库API没有克隆/重命名操作,因此我们在用户界面中也没有相应的功能。



请注意,此操作也不是出于同样的原因,也可以在之前的Firebase仪表板中使用。它与你的安全规则和新版本无关。



如果你想把一个节点移动到一个新的位置,你必须模拟它:


  1. 转到

  2. 浏览您的JSON树,直到您选择了要移动的节点为止。$ b $ rel =noreferrer b
  3. 在右侧打开溢出菜单(三个垂直点:),然后选择导出JSON 。将文件保存到本地磁盘。

  4. 从JSON树中删除节点
  5. 将JSON树导航到您想要移动的位置数据

  6. 在右侧打开溢出菜单(三个垂直点:),然后选择导入JSON 。从本地磁盘中选择文件。


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 ?

解决方案

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.

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

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