Upgrading parse-server from 5 to 8

Hi! I finally started my journey to upgrade parse in two projects I’m maintaining, which both use v 5.6 to the latest version of parse.

I made good progress, yet I ran into an issue that I did not see (or missed) in the breaking changes and want to ask here.

In my cloud code before find / after find triggers I’ve noticed that I cannot use the ParseObjectSubclass supplied in the context under objects is no longer usable as a pointer in ParseQuery.

An example object like this was usable in v 5.6.0 and was cast to a pointer correctly:

 ParseObjectSubclass {
   className: 'Cube',
   _objCount: 2385,
   id: 'VOD-052755'
 }

However now in v8 unless I do .toPointer() on the object, I cannot use it in pointer queries.

Since I have a lot of calls throughtout my codebase and I don’t want to have to add .toPointer() on all of these, any ideas on what I can do?

I tried setting the encodeParseObjectInCloudFunction option to false but this was not the culprit.

Would appreaciate any input! Thanks!

I’ve since found out that this is happening exclusively in cloud code triggers. Opened an issue here.