i’m trying to add an element to an array field called notifications in User class from a cloud code functions triggered when a notifications is created
i fetch a list of users i’m trying to add the notif for like this
that’s the code
for(const parseuser of userqueryresults) {
console.log("user id that we save notif for is "+parseuser.id);
parseuser.addUnique("notifications",notification.id);
parseuser.save(null,{useMasterKey:true});
}
but nothing is happening please help