Here's my server setup:
const server = new ApolloServer({
typeDefs,
resolvers,
dataSources: () => ({
movieAPI: new MovieAPI()
}),
context: {
hello: `world`
}
});
server
.listen({ port: 4000 })
.then(({ url }) => console.log(`🚀 app running at ${url}`));
If I remove datasources
everything works fine, otherwise I get an error in graphql playground
"error": "Response not successful: Received status code 500"
I'm doing this Apollo Server tutorial but I have some babel config so I can use es6 syntax.
Here is my repo
adding introspection: true
solved the issue