How i can update document in Firestore kotlin?
I want to update or merge Firestore document without adding new document. So i want to image url to firestore existing document field with merge method. But it does not overwrite, it is going to create a new document with auto-generated ID. How i can fix it?
val uuid = UUID.randomUUID()
val imageName = "$uuid.jpg"
val reference = storage.reference
val imagereference = reference.child("images").child(imageName)
if (selectedPicture != null) {...