With the last improvement in matrices, you can add, update and delete an element but only in matrix.
But for:
Map<String, Object> comentarios = new HashMap<>();
I probe it and it transforms me a Map to array does not matiene the same type. Someone know how I should do it?
My code is:
final Map<String, Object> nuevoComentario = new HashMap<>();
nuevoComentario.put("comentario", FieldValue.arrayUnion("id5", "Msj add"));
db.collection("Hospedaje").document(documentGetID)
.update(nuevoComentario);