我想將swift中的對象層次映射到firebase,並且試圖找出最佳模式。 我有一個屬性一個父類ParentpropParent和兩個孩子:Child1與屬性propChild1和Child2與屬性propChild2。 什麼是最有效和可維護的方式將其映射到Firebase模式。 class Parent {
var propParent: String
}
class Child1
的問題 我似乎得到餘燼與下面的錯誤,我也跟着文檔,但仍然得到錯誤: Uncaught TypeError: this._ref.push is not a function
at Class.generateIdForRecord (firebase.js:75)
at Class._generateId (-private.js:10359)
at Class.cr