Last active
June 19, 2018 20:53
-
-
Save martijnwalraven/14e8d152001e3227d8e30093f0d9c8e3 to your computer and use it in GitHub Desktop.
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
Query: { | |
movie: async (_source, { id }, { dataSources }) => { | |
return dataSources.moviesAPI.getMovie(id); | |
}, | |
mostViewedMovies: async (_source, _args, { dataSources }) => { | |
return dataSources.moviesAPI.getMostViewedMovies(); | |
}, | |
favorites: async (_source, _args, { dataSources }) => { | |
return dataSources.personalizationAPI.getFavorites(); | |
}, | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment