This is what I found but it doesnt seem to work: const content = user.lastMessage.content; I think its an outdated way but I dont know the latest way.