javascript firestore autoid

Solutions on MaxInterview for javascript firestore autoid by the best coders in the world

showing results for - "javascript firestore autoid"
Enrico
22 May 2018
1import firebase from "firebase";
2
3// Firebase will add an auto-ID when you leave the .doc() function empty
4firebase.firestore().collection("myCollection").doc().set({ key: "value" });