是否可以从对象更改Firebase路径?

时间:2017-04-04 18:48:43

标签: firebase firebase-realtime-database

我试图做一件非常简单的事情,比如:

root: {
  objects: {
    id_subobj1: { // these are two objects doing current events.
      name: "subName1",
      description: "it's nice"
    },
    id_subobj2: {
      name: "subName2",
      description: "it's cool"
    }
  },

  history: { 
// once they are done, I'd like to store them in this branch as an exact copy as they were in the "Objects" branch.
    id_subobj: {
      name: "name",
      description: "it was nice"
    }
  }
}

我想要实现的是获取我的对象,以及将它们复制并粘贴到历史记录分支中。

我试图这样做,但我没有成功。

有什么想法吗?

0 个答案:

没有答案