如何在新的 Angularfire 7 中为文档设置自定义 ID?
我不想要自动生成的..
我的代码:(这会创建一个自动ID,一个想放我自己的ID)
addInfos(infos: any) { const notesRef = collection(this.firestore, "infos"); return addDoc(notesRef, infos) }
javascript firebase angularfire google-cloud-firestore
angularfire ×1
firebase ×1
google-cloud-firestore ×1
javascript ×1