I’m currently testing some commands and features to use in a game and my goal was to make all the game logic work inside cloud functions. The problem is: I can’t make the set() function to work to add/edit data from the User.
When I add or edit from a custom object it apparently works fine. What could I be doing wrong? If edit user data like this it’s something that is not possible, how could I create an object automatically when the user logs in to store their data?