Created
April 25, 2017 23:13
-
-
Save AdamZaczek/af4aa026f30fd7b86778b89a4a30b730 to your computer and use it in GitHub Desktop.
GraphQL Getting Started Code Fragment 3
This file contains 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
users: { | |
type: new GraphQLList(User), | |
description: 'Netguru members', | |
resolve: () => { | |
return USER.find({}, (err, res) => { | |
return res; | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment