将我的Apollo 2服务器部署到Heroku时,Graphql Playground启动,但是出现以下错误:
“错误”:“响应不成功:收到状态码500”
我已经参考了建议here以及其他一些SO链接和Apollo GH问题。由于某些原因,建议的建议不起作用。我尝试将introspection: true
和playground: true
添加到我的ApolloServer配置设置中,但没有任何改变。
下面是我的ApolloServer配置的简化示例。
const apolloServer = new ApolloServer({
schema,
resolvers,
tracing: true,
debug: true,
introspection: true,
playground: true
});