Hi, I'm getting to learn PlayFab, and what I'm using this code to do get player read-only data and then modify it and then save it back.
handlers.UpdatePlayerLevelDetail = function (args, context){ let data = server.GetUserReadOnlyData({ PlayFabId: currentPlayerId, Keys: ["userEachLevelScore", "userEachLevelStar"] }); log.debug("data", data); // add more value // update new value return {"data": data}; }
The data in log.debug is empty but data is not empty in return.
here is my read-only data
Does it mean that I have to change data on client and then just call the update function on server?