📌  相关文章
📜  添加到 firestore - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:53.048000             🧑  作者: Mango

代码示例1
// Add a new document in collection "cities"
db.collection("cities").doc("LA").set({
    name: "Los Angeles",
    state: "CA",
    country: "USA"
})
.then(() => {
    console.log("Document successfully written!");
})
.catch((error) => {
    console.error("Error writing document: ", error);
});