Last active
October 20, 2016 06:44
-
-
Save dabit3/740dd10f7069ee87a74d0d6f3d1ac76a to your computer and use it in GitHub Desktop.
Apollo Tutorial - Resolver
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 resolveFunctions = { | |
RootQuery: { | |
president(_, { name }, ctx) { | |
const president = new ctx.constructor.President(); | |
return president.findPresident(name); | |
}, | |
}, | |
}; | |
module.exports = resolveFunctions; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment