The updateDocument function is used to update the title and description of an image. Currently, it reads the document, updates it locally, then writes the entire document back. This approach is because patch replaceInsert could not work with just a value at the time the function was written.
The updateDocument function is used to update the title and description of an image. Currently, it reads the document, updates it locally, then writes the entire document back. This approach is because patch replaceInsert could not work with just a value at the time the function was written.