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" });