The firestoreDelete
function is a higher-order function that returns a function that deletes a document from a collection.
You can use the firestoreDelete
function to delete a document from a collection. The only required parameter is a function returning the path
to the document you want to delete.
The return value of firestoreDelete
is a function that returns a Promise
that resolves to void
.
When you delete a document, all subcollections are not automatically deleted. You can use the firestoreDelete
function to delete a document and all of its subcollections.
This can be useful if posts have comments and you want to delete all comments when a post is deleted.
firestoreDelete
here.The firestoreDelete
function is a higher-order function that returns a function that deletes a document from a collection.
You can use the firestoreDelete
function to delete a document from a collection. The only required parameter is a function returning the path
to the document you want to delete.
The return value of firestoreDelete
is a function that returns a Promise
that resolves to void
.
When you delete a document, all subcollections are not automatically deleted. You can use the firestoreDelete
function to delete a document and all of its subcollections.
This can be useful if posts have comments and you want to delete all comments when a post is deleted.
firestoreDelete
here.