【问题标题】:How to run Appsync Subscriptions on graphql playground如何在 graphql 游乐场上运行 Appsync 订阅
【发布时间】:2019-12-03 17:19:58
【问题描述】:

我已经使用 appsync 服务在 aws 上部署了 graphql API。我可以在亚马逊控制台上运行查询、变异和订阅,但是当我尝试在任何 graphql 游乐场上测试订阅时,它会显示错误。

我已使用 serverless graphql-playground 命令为 AppSync 运行 Playground。

如何在 graphql Playground 上运行 appsync 订阅?

Error Screenshot

【问题讨论】:

    标签: graphql aws-appsync graphql-subscriptions


    【解决方案1】:

    AppSync 用于订阅的协议与 GraphQL Playground 中使用的协议略有不兼容。由于 Playground 是开源的,因此您可以在其中构建支持。但它不会直接按原样工作。

    【讨论】:

      猜你喜欢
      • 2019-04-14
      • 2021-04-03
      • 2018-10-20
      • 2020-09-20
      • 1970-01-01
      • 2020-10-27
      • 2019-08-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多