firebase / snippets-web

Web snippets for firebase.google.com
Apache License 2.0
737 stars 241 forks source link

It should be deleteDoc, not updateDoc #368

Open cbondoc opened 3 months ago

cbondoc commented 3 months ago

https://github.com/firebase/snippets-web/blob/1abb6ce1a784ae5552946dff5f1f5aab7dcbda30/snippets/firestore-next/test-firestore/update_delete_field.js#L8-L15

Nitinkumar-29 commented 1 month ago

The thing is you are updating a item in a collection but not deleting the item may be that's the reason they called it updateDoc instead of deleteDoc