feature/IO-3096-GlobalNotifications - Checkpoint - clicking an individual notification will mark it read

This commit is contained in:
Dave Richer
2025-02-26 15:52:21 -05:00
parent 0767e290f4
commit e4d437018d
4 changed files with 98 additions and 12 deletions

View File

@@ -38,3 +38,14 @@ export const MARK_ALL_NOTIFICATIONS_READ = gql`
}
}
`;
export const MARK_NOTIFICATION_READ = gql`
mutation MarkNotificationRead($id: uuid!) {
update_notifications(where: { id: { _eq: $id } }, _set: { read: "now()" }) {
returning {
id
read
}
}
}
`;