Docs say it is required to create relation type column in the dashboard prior to adding any relations to object:
In the Data Browser, you can create a column on the Book object of type relation and name it authors.
Is it possible to create it from js sdk level? I tried something like here:
book.save(null).then(saved => {
let relation = new Parse.Relation(saved.id, "authors");
relation.add(author);
saved.save(null);
}
But it can not be saved saying TypeError: this.parent.set is not a function
I know I can add it manually in the dashboard as stated, but the idea is to create new classes automatically.