publishToUser
Gives information to user 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 |
|---|---|---|---|
userId | ID! | Yes | The user to publish to |
data | AWSJSON! | Yes | JSON payload |
Return Type
UserFeedback — contains userId and data.
Example
mutation PublishToUser {
publishToUser(
userId: "dXNyMTIzNDU2"
data: "{\"event\":\"UPLOAD\",\"success\":true}"
) {
userId
data
}
}