Skip to content

Commit

Permalink
Remove TS types from subscriptions.md (#3494)
Browse files Browse the repository at this point in the history
Looking through the `Fetching docs` section, this was the only bit that added types. Removing them avoids confusion and adds consistency across the docs.
  • Loading branch information
Kosai106 authored and abernix committed Nov 13, 2019
1 parent 0abe4b0 commit 95557f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/data/subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ const resolvers = {
},
},
Query: {
posts(root: any, args: any, context: any) {
posts(root, args, context) {
return postController.posts();
},
},
Mutation: {
addPost(root: any, args: any, context: any) {
addPost(root, args, context) {
pubsub.publish(POST_ADDED, { postAdded: args });
return postController.addPost(args);
},
Expand Down

0 comments on commit 95557f6

Please sign in to comment.