📜  react firebase add doc to collection - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:03.349000             🧑  作者: Mango

代码示例1
firebase
  .firestore()
  .collection("Users")
  .doc("mydoc")
  .collection("Activities")
  .doc("Database")
  .set({
    key: "1",
    value: "",
  })
  .then((ref) => { console.log(ref) });