Skip to content

Commit

Permalink
docs: fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
y-hsgw committed Sep 9, 2024
1 parent 20b1b96 commit a7f9b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/graphql/subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a7f9b1d

Please sign in to comment.