Add registering of client-side relationship properties (#5936)
This commit is contained in:
@@ -34,6 +34,12 @@ class Comment extends Model {
|
||||
@observable
|
||||
parentCommentId: string;
|
||||
|
||||
/**
|
||||
* The comment that this comment is a reply to.
|
||||
*/
|
||||
@Relation(() => Comment, { onDelete: "cascade" })
|
||||
parentComment?: Comment;
|
||||
|
||||
/**
|
||||
* The document to which this comment belongs.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user