2021年1月19日星期二

How can i access/delete a randomly created document id in firestore?

Code for deleting something (not working with this.task.id or this.task)

const docRef = firebase.firestore().collection('users').doc(firebase.auth().currentUser.uid)  docRef.collection('tasks').doc(this.task.id).delete()  
https://stackoverflow.com/questions/65798889/how-can-i-access-delete-a-randomly-created-document-id-in-firestore January 20, 2021 at 04:19AM

没有评论:

发表评论