Cannot add node to Firebase through console

送分小仙女□ 提交于 2019-11-27 15:28:42

The Firebase Database is a key-value store. It stores the values of keys at paths in the tree. But it only stores keys when they have an actual value. If there is no value for a key/path, it is immediately deleted.

So if you click the + button, then enter a key and click the Add button, it will delete the first key that you entered because it doesn't have a value.

What you instead should do depends on what you want to accomplish.

To add a single key/value pair:

  • click the +
  • enter a key/Name
  • enter a Value
  • click Add

If you want to add a JSON snippet/tree:

  • click the +
  • enter a key/Name
  • click the + next to the (empty) Value
  • enter a key/Name for the child
  • enter a Value for the child
  • click Add
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!