File size: 556 Bytes
3c3f089
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { gql } from "@apollo/client";

export const NotificationQuery =
  gql(`query Notifications($input: NotificationInput!) {
  notifications(input: $input) {
    message
    status
    data {
      id
      type
      receiverId
      projectId
      projectSlug
      content
      viewed
      createdAt
      sender {
        avatar
        username
      }
    }
  }
}`);

export const ViewNotificationMutation =
  gql(`mutation ViewNotification($input: ViewNotificationInput!) {
  viewNotification(input: $input) {
    message
    status
  }
}`);