Skip to content

Instantly share code, notes, and snippets.

@martijnwalraven
Last active June 20, 2018 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martijnwalraven/cd577c6db1ed1d9febddd8c9cd337d9c to your computer and use it in GitHub Desktop.
Save martijnwalraven/cd577c6db1ed1d9febddd8c9cd337d9c to your computer and use it in GitHub Desktop.
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