Assuming my collection is something like the following:
/eventos/
180812-fiesta { ... }
180813-reunion { ... }
180814-concierto { ... }
If you would like, for example, change the name of the document 180812-fiesta
. Is there any way to do it?
This is how the documents are created:
this.db.collection('eventos').doc(id).set(data);
At the moment, it only occurs to me to delete the document and create a new one with the new name and the same data, but I would like to know if there is a better way to solve this.