Closed thiscris closed 4 months ago
Ahh, yeah, I was lazy purely due to having had just rewritten that entire piece of Firebase. I'll update it presently and then close this.
Okay, I've updated the entire wiki for Firestore again with even the changes for 3.x, which had been fully implemented and merged but not updated in the wiki. I also got the delete one. For future reference, if you want to submit a fix, you can technically (I think!) open a PR against the wiki.
Describe the bug The snippet in the wiki under Firestore - Delete a document
var was_deleted = await firestore_collection.delete("DOCUMENT_ID")
produces this validation errorTo Reproduce
Expected behavior If the documentation is only 1 line of code, it should be a working one :)
Environment:
Additional context There is one more snippet in that wiki section
await collection.delete(document) -> bool # Returns true if deleted successfully
it is probably the correct one, but would be better if it has the extra line wheredocument
is defined and the other code snippet is deleted