Skip to content

Commit 9f4e4f2

Browse files
committed
Add CommentThread { container } for consistency (same as parent)
1 parent a8548a8 commit 9f4e4f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/comments/comment-thread.resolver.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ export class CommentThreadResolver {
9999
return await this.resources.loadByBaseNode(thread.parent);
100100
}
101101

102+
@ResolveField(() => Commentable)
103+
async container(@Parent() thread: CommentThread) {
104+
return await this.resources.loadByBaseNode(thread.parent);
105+
}
106+
102107
@ResolveField(() => User)
103108
async creator(
104109
@Parent() thread: CommentThread,

0 commit comments

Comments
 (0)