Last active
June 20, 2018 07:39
-
-
Save martijnwalraven/cd577c6db1ed1d9febddd8c9cd337d9c 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
const server = new ApolloServer({ | |
typeDefs, | |
resolvers, | |
dataSources: () => { | |
return { | |
moviesAPI: new MoviesAPI(), | |
personalizationAPI: new PersonalizationAPI(), | |
}; | |
}, | |
context: () => { | |
return { | |
token: | |
'foo', | |
}; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment