I think I may be going crazy. Either that, or I’m doing something very obviously wrong and am completely missing it.
I’ve created a server using TypeScript, and I’ve defined a custom object by extending Parse.Object. I’ve also ensured that I am properly registering the subclass per the documentation. I am able to create instances of this object and save them like any other Parse object, and have verified they exist in the database, but when it comes to querying the objects, I’m having issues.
It doesn’t matter what way I attempt to query for objects, I always just get a pointer back, and not the full object. I have to subsequently call .fetch() on the items returned from the query in order to get the properties from it.
Am I doing something incorrectly here? Any help is greatly appreciated.
The funny thing with this is that the property isn’t a pointer, it’s a primitive.
I did figure out what was actually causing the issue though. For some reason or another, if you don’t include an empty constructor that calls through super, things don’t get initialized properly.
The above example was a bit off. I am creating an instance with a constructor with params, and setting the properties inside the constructor like so: