【问题标题】:Appsync Subscription (with alias) not receiving updatesAppsync 订阅(带别名)未收到更新
【发布时间】:2019-09-21 13:56:33
【问题描述】:

使用 GraphQL alias 功能,调用突变时未收到任何更新。

subscription OnPutItem($id: ID!) {
  item: onPutItem(id: $id) { // <---------- with alias
    id
    data
  }
}

mutation PutItem($data: String!) {
  item: PutItem(data: $data) { // <-------- with alias
    id
    data
  }
}

它可以正常工作没有item 别名。

在 Appsync 控制台和使用 aws-amplify 的应用中测试。

I didn't see any restrictions for alias not to be used in subscription.

有什么想法吗?

【问题讨论】:

    标签: amazon-web-services graphql aws-amplify aws-appsync


    【解决方案1】:

    感谢您提请我们注意。现已部署了针对此问题的修复程序,因此您应该会看到带有别名的突变和订阅的更新。

    【讨论】:

    • 谢谢!我应该在此修复中使用哪个 aws-amplify 版本?我现在也尝试使用 AppSync 控制台,别名未显示在响应中(即data
    猜你喜欢
    • 2019-02-14
    • 2019-01-07
    • 2018-09-20
    • 1970-01-01
    • 2021-06-03
    • 2021-09-20
    • 2021-05-30
    • 2018-09-30
    • 2021-01-28
    相关资源
    最近更新 更多