Im using typescript in the cloud code of my parse server but Im getting some problems saving and getting objects.
In the main.js file I have registered the next class:
Parse.Object.registerSubclass('Subscription', Subscription);
Subscription.ts:
export class Subscription extends Parse.Object {...}
Saving a object like:
obj = new Parse.Object(Subscription) it is going to create a class "undefined" storing there the data.
But typing obj = new Parse.Object("Subscription"); its work ok.
Any idea? Thanks!
new Subscription()and followed the JS guide: docs.parseplatform.org/js/guide/#objects