I have this error and this is my cloud code.
var HighScore = Parse.Object.extend("HighScore"); highScore = new HighScore(); highScore.set("totalXp", request.params.totalXp); highScore.set("regionId", request.params.regionId); var relation = highScore.relation("userId"); relation.add(request.user); highScore.save(); response.success(highScore);
The answer came back empty, but it is strange that the relation is added successfully when I look at the data browser.
Cannot find a reliable answer or explanation. Please, help.
source share