From a7f9b1d07eb8cdf371a8b18dc2b07f6d73a7413c Mon Sep 17 00:00:00 2001 From: Hasegawa-Yukihiro Date: Mon, 9 Sep 2024 22:38:12 +0900 Subject: [PATCH] docs: fix return type --- content/graphql/subscriptions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/graphql/subscriptions.md b/content/graphql/subscriptions.md index 3d7710712e..25513b4781 100644 --- a/content/graphql/subscriptions.md +++ b/content/graphql/subscriptions.md @@ -80,7 +80,7 @@ Now, to publish the event, we use the `PubSub#publish` method. This is often use ```typescript @@filename(posts/posts.resolver) -@Mutation(returns => Post) +@Mutation(returns => Comment) async addComment( @Args('postId', { type: () => Int }) postId: number, @Args('comment', { type: () => Comment }) comment: CommentInput, @@ -413,7 +413,7 @@ Now, to publish the event, we use the `PubSub#publish` method. This is often use ```typescript @@filename(posts/posts.resolver) -@Mutation(returns => Post) +@Mutation(returns => Comment) async addComment( @Args('postId', { type: () => Int }) postId: number, @Args('comment', { type: () => Comment }) comment: CommentInput,