Last active
June 14, 2018 21:11
-
-
Save daniele-zurico/13a620013c546f38d0f8740b3ac9a173 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { postController } from "../controllers/controllers"; | |
| const postResolver = { | |
| Query: { | |
| posts(root: any, args: any, context: any) { | |
| return postController.posts(); | |
| } | |
| }, | |
| Mutation: { | |
| addPost(root: any, args: any, context: any) { | |
| return postController.addPost(args); | |
| } | |
| } | |
| }; | |
| export default postResolver; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment