From 8ef12063b0318f52e8c0f61323fb4d97baf2c2ba Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 24 Nov 2023 05:50:27 +0300 Subject: [PATCH] mutation-fi --- notifier.graphql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/notifier.graphql b/notifier.graphql index 91c713d..eee5112 100644 --- a/notifier.graphql +++ b/notifier.graphql @@ -32,6 +32,15 @@ type NotificationsQueryResult { unread: Int! } +type NotificationSeenResult { + error: String +} + type Query { loadNotifications(params: NotificationsQueryParams!): NotificationsQueryResult! } + +type Mutation { + markNotificationAsRead(notification_id: Int!): NotificationSeenResult! + markAllNotificationsAsRead: NotificationSeenResult! +}