Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react firebase add doc to collection

firebase
  .firestore()
  .collection("Users")
  .doc("mydoc")
  .collection("Activities")
  .doc("Database")
  .set({
    key: "1",
    value: "",
  })
  .then((ref) => { console.log(ref) });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #firebase #add #doc #collection
ADD COMMENT
Topic
Name
2+1 =