2025-11-05 13:30:31 -08:00
|
|
|
query GetNotifications(
|
|
|
|
|
$limit: Int! = 20
|
|
|
|
|
$offset: Int! = 0
|
|
|
|
|
$filters: NotificationFilters = null
|
|
|
|
|
) {
|
|
|
|
|
notifications(limit: $limit, offset: $offset, filters: $filters) {
|
|
|
|
|
notifications {
|
2025-11-05 15:09:33 -08:00
|
|
|
...Notification
|
2025-11-05 13:30:31 -08:00
|
|
|
}
|
|
|
|
|
totalCount
|
|
|
|
|
unreadCount
|
|
|
|
|
hasMore
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
query GetUnreadNotificationCount {
|
|
|
|
|
unreadNotificationCount
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mutation MarkNotificationAsRead($notificationId: Int!) {
|
|
|
|
|
markNotificationAsRead(notificationId: $notificationId)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mutation MarkNotificationsAsRead($notificationIds: [Int!]!) {
|
|
|
|
|
markNotificationsAsRead(notificationIds: $notificationIds)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mutation MarkAllNotificationsAsRead {
|
|
|
|
|
markAllNotificationsAsRead
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mutation DeleteNotification($notificationId: Int!) {
|
|
|
|
|
deleteNotification(notificationId: $notificationId)
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-05 15:09:33 -08:00
|
|
|
fragment Notification on NotificationGQL {
|
2025-11-05 13:30:31 -08:00
|
|
|
id
|
|
|
|
|
notificationType
|
|
|
|
|
actor {
|
|
|
|
|
id
|
|
|
|
|
username
|
|
|
|
|
profileImageUri
|
|
|
|
|
}
|
|
|
|
|
videoId
|
|
|
|
|
comment {
|
|
|
|
|
id
|
|
|
|
|
message
|
|
|
|
|
user {
|
|
|
|
|
id
|
|
|
|
|
username
|
|
|
|
|
profileImageUri
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
reactionType
|
|
|
|
|
isRead
|
|
|
|
|
createdAt
|
|
|
|
|
readAt
|
|
|
|
|
}
|