I have this cloud function that creates a new document every time I have a new chat. I am trying to access the values on the messages array, but I got und
messages
und