Notifications
Mutation
createNotification — Returns Notification
No scope required
This is currently an experimental mutation, please get in contact with us before using it.
| Arguments | Type | Description |
|---|---|---|
|
notifiable |
||
|
image |
String |
The |
|
title |
String! |
The |
|
message |
String |
The |
|
action |
||
|
address |
String |
The |
Example Mutation
mutation CreateNotification {
createNotification {
id,
data,
readAt,
createdAt,
updatedAt
}
}Mutation
deleteAllNotifications — Returns boolean
No scope required
Delete all the read notifications
Example Mutation
mutation DeleteAllNotifications($register: ID) {
deleteAllNotifications(register: $register)
}
# Example variables
{
"register": "<REGISTER>"
}Mutation
deleteNotification — Returns boolean
No scope required
Delete a notification
| Arguments | Type | Description |
|---|---|---|
|
id |
String! |
The id of the notification to delete |
Example Mutation
mutation DeleteNotification($id: String!) {
deleteNotification(id: $id)
}
# Example variables
{
"id": "<ID>"
}Mutation
readAllNotifications — Returns boolean
No scope required
Mark all notification as read
Example Mutation
mutation ReadAllNotifications($register: ID) {
readAllNotifications(register: $register)
}
# Example variables
{
"register": "<REGISTER>"
}Mutation
readNotification — Returns boolean
No scope required
Mark a notification as read
| Arguments | Type | Description |
|---|---|---|
|
id |
String! |
The id of the notification to mark as read |
Example Mutation
mutation ReadNotification($id: String!) {
readNotification(id: $id)
}
# Example variables
{
"id": "<ID>"
}