【问题标题】:AWS Appsync complex subscription argumentsAWS Appsync 复杂订阅参数
【发布时间】:2019-06-15 22:49:37
【问题描述】:

我目前正在开发一个消息传递应用程序,并希望创建一个全局订阅只是为了演示我想要实现的目标假设有一个像 sendMessage 这样包含 senderId 和 Members 的突变,例如:-

mutation sendMessage(senderId :String!,members:[String]){
    response
}

此突变用于向用户发送消息,实际示例不同且复杂,因此我用小示例询问让我们运行具有以下值的突变,例如:-

mutation sendMessage(senderId :"A",members:["A","B","C"]){
    response
}

我的问题 - 只有当成员在成员数组中包含“B”时才能获得订阅:-

subscribeToSendMessage(member:["B"]): message aws_subscribe(mutations: ["sendMessage"])

【问题讨论】:

    标签: ios swift aws-appsync graphql-subscriptions


    【解决方案1】:

    目前这是不可能的。 AWS forums中也有类似的问题,有很好的解释

    【讨论】:

    • 嘿@Vasileios Lekakis 感谢您的快速回复,非常感谢您抽出宝贵时间,如果不可能,我会尝试不同的方法。
    猜你喜欢
    • 2018-09-30
    • 2019-01-07
    • 2020-12-28
    • 2019-09-16
    • 2019-12-27
    • 2019-03-21
    • 2019-05-23
    • 1970-01-01
    • 2019-01-10
    相关资源
    最近更新 更多