Apollo Playground无法在Heroku上运行,自省和Playground配置选项设置为true

时间:2019-07-18 19:57:32

标签: javascript heroku apollo

将我的Apollo 2服务器部署到Heroku时,Graphql Playground启动,但是出现以下错误:

  

“错误”:“响应不成功:收到状态码500”

我已经参考了建议here以及其他一些SO链接和Apollo GH问题。由于某些原因,建议的建议不起作用。我尝试将introspection: trueplayground: true添加到我的ApolloServer配置设置中,但没有任何改变。

下面是我的ApolloServer配置的简化示例。

 const apolloServer = new ApolloServer({
    schema,
    resolvers,
    tracing: true,
    debug: true,
    introspection: true,
    playground: true
  });

0 个答案:

没有答案