Hi.
I have an afterSave function in my Cloud Code:
Parse.Cloud.afterSave(“List”, async (request) => {
let data = request.object;
console.log(“Object.keys(data) :”, Object.keys(data)); // returns [ ‘_objCount’, ‘className’, ‘id’ ]
// 1. But why? Shouldn’t it return the columns (keys) from the class "List"var array = Object.keys(data);
for (var i = 0; i < array.length; i++) {
console.log(“value :”, await data.get(array[i])); // returns undefined
// 2. Why? How else to access the data for the object for which the afterSave function has been triggered?
});
Thanks!