setNotificationPreference
Turns one notification kind on or off for one outbound channel for the signed-in user. Returns all preferences.
Arguments
channelNotificationChannel!The outbound channel to change.
enabledBoolean!Whether to send this kind on this channel.
kindNotificationKind!The kind of notification to change.
Renvoie
[NotificationPreference!]!Exemple
mutation SetNotificationPreference($channel: NotificationChannel!, $enabled: Boolean!, $kind: NotificationKind!) {
setNotificationPreference(channel: $channel, enabled: $enabled, kind: $kind) {
available
category
channel
enabled
kind
}
}