I have a cloud function running some code like this and I am able to get a response for my query which is a valid class instance, but when I try to update the instance with the set method, I get the error you see in the title.
async function addToDB(apiKey) {
const query = new Parse.Query(MyClass);
query.equalTo('apiKey', apiKey);
const response = await query.find({ useMasterKey: true });
const myInstance = response[0];
myInstance.set('total', 100);
try {
await myInstance.save({ useMasterKey: true });
} catch (e) {
console.log('E', e);
}
}
console.log(myInstance)belowconst myInstance = response[0];line and update the post with the results? I would like to have better insight on the contents. I found a similar issue due toclass level/object level permissionson this post.ParseObjectSubclass { className: 'MyClass', _objCount: 0, id: 'GstyehLqIN' }