The current angularfire docs (Angularfire 6.0.4, Latest commit d91965e on Mar 30 2020), says only this on manipulating documents:
AngularFirestore provides methods for setting, updating, and deleting document data.
set(data: T) - Destructively updates a document's data.
update(data: T) - Non-destructively updates a document's data.
delete() - Deletes an entire document. Does not delete any nested collections.
When interacting directly with Firebase (i.e. not using angularfirestore), firebase is pretty clear that an update will fail if the document does not exist; one must use the set
operation for new documents (perhaps with the {merge: true} option as a safety catch in case the document exists).
What does the Angular Firestore update(data: T)
command do if the document does not exist?