-
I'm encountering this error when I run the function while passing an array of ParseObjects as a parameter in a ParseCloudable struct. (i.e.
After a lot of debugging regarding this Parse-Server configuration "encodeParseObjectInCloudFunction" - I found this function in Parse-Server repo functionrouter.js function parseObject(obj, config) {
if (Array.isArray(obj)) {
return obj.map(item => {
return parseObject(item, config);
});
} else if (obj && obj.__type == 'Date') {
return Object.assign(new Date(obj.iso), obj);
} else if (obj && obj.__type == 'File') {
return Parse.File.fromJSON(obj);
} else if (obj && obj.__type == 'Pointer' && config.encodeParseObjectInCloudFunction) {
return Parse.Object.fromJSON({
__type: 'Pointer',
className: obj.className,
objectId: obj.objectId,
});
} else if (obj && typeof obj === 'object') {
return parseParams(obj, config);
} else {
return obj;
}
} Which, if I correctly drilled down to, takes a config parameter from the request object. Looking at the but it doesn't seem like this So the question is, am I right that this is a configuration that needs to be added somewhere in the Parse-Swift repo or is there something wrong with my setup in Parse-Server (my tests of settings thanks, edit: if it helps, there's this issue on that property here: parse-community/parse-server#8783 (comment) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
🙄 nevermind. as usual after I post, I realize this is a Parse-Server problem. |
Beta Was this translation helpful? Give feedback.
btw this should be fixed with the latest updates of Parse-Server.