Skip to content

Commit a7f9b1d

Browse files
committed
docs: fix return type
1 parent 20b1b96 commit a7f9b1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/graphql/subscriptions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Now, to publish the event, we use the `PubSub#publish` method. This is often use
8080

8181
```typescript
8282
@@filename(posts/posts.resolver)
83-
@Mutation(returns => Post)
83+
@Mutation(returns => Comment)
8484
async addComment(
8585
@Args('postId', { type: () => Int }) postId: number,
8686
@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
413413

414414
```typescript
415415
@@filename(posts/posts.resolver)
416-
@Mutation(returns => Post)
416+
@Mutation(returns => Comment)
417417
async addComment(
418418
@Args('postId', { type: () => Int }) postId: number,
419419
@Args('comment', { type: () => Comment }) comment: CommentInput,

0 commit comments

Comments
 (0)