Skip to main content

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

ArgumentTypeRequiredDescription
userIdID!YesThe user to publish to
dataAWSJSON!YesJSON payload

Return Type

UserFeedback — contains userId and data.

Example

mutation PublishToUser {
publishToUser(
userId: "dXNyMTIzNDU2"
data: "{\"event\":\"UPLOAD\",\"success\":true}"
) {
userId
data
}
}

Export This Article

Save a copy of this page as PDF or plain text.