publishToGroup
Gives information to group subscription channels. This mutation is IAM-authenticated (@aws_iam) and is used internally by the system to push real-time notifications.
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
groupId | ID! | Yes | The group to publish to |
data | AWSJSON! | Yes | JSON payload |
Return Type
GroupFeedback — contains groupId and data.
Example
mutation PublishToGroup {
publishToGroup(
groupId: "Z3JwMTIzNDU2"
data: "{\"event\":\"UPLOAD\",\"success\":true}"
) {
groupId
data
}
}