Skip to content

Commit

Permalink
Merge pull request #3087 from y-hsgw/docs/graph-ql-subscription
Browse files Browse the repository at this point in the history
docs(graphql/subscriptions): fix return type in sample code
  • Loading branch information
kamilmysliwiec authored Sep 30, 2024
2 parents d137f14 + a7f9b1d commit b037d3c
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 b037d3c

Please sign in to comment.