Created
July 20, 2016 18:06
-
-
Save callmephilip/466df8278f6082fb4af9759acefd56a0 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
| const RootQuery = { | |
| type: new GraphQLList(TodoSchemaType), | |
| resolve: (_, { text }, { Query, user }) => { | |
| const query = new Query(Todo); | |
| return query.find(); | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment