0
I have the function which updates user data (currently only name). I would like to optimize its logic and particularly logic of updating participant name in chats. Currently I get entire chats collection where I find objects where participants array contains current user name (who wants to update...