Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript firestore autoID

import firebase from "firebase";

// Firebase will add an auto-ID when you leave the .doc() function empty
firebase.firestore().collection("myCollection").doc().set({ key: "value" });
 
PREVIOUS NEXT
Tagged: #javascript #firestore #autoID
ADD COMMENT
Topic
Name
2+3 =