新的火力地堡數據庫公司的FireStore說嵌套數組不支持
功能DocumentReference.set()調用無效數據。嵌套數組不支持。
當試圖保存下列對象:
{
"desc" : "Blala",
"geojson" : {
"features" : [ {
"geometry" : {
"coordinates" : [ 8.177433013916017, 48.27753810094064 ],
"type" : "Point"
},
"type" : "Feature"
} ],
"type" : "FeatureCollection"
},
"location" : {
"lat" : 48.27753810094064,
"lng" : 8.177433013916017
},
"name" : "Wald und Wiesen",
"owner" : "8a2QQeTG2zRawZJA3tr1oyOAOSF3",
"prices" : {
"game" : {
"Damwild" : 10,
"Raubwild" : 300,
"Rehwild" : 250,
"Schwarzwild" : 40
},
"perDay" : 35
},
"rules" : "Keine Regeln!",
"wild" : {
"desc" : "kein Wild",
"tags" : [ "Damwild", "Rehwild", "Schwarzwild", "Raubwild" ]
}
}
究竟是嵌套數組公司的FireStore抱怨?我無法在文檔中找到它。
如果是GeoJSON對象 - 我將如何保存它?
有趣的是,這個文件建議支持嵌套數組。也許這是代碼或文檔中的錯誤? https://cloud.google.com/firestore/docs/manage-data/add-data#data_types –