-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathuserNotificationsMutations.ts
More file actions
47 lines (42 loc) · 1.16 KB
/
userNotificationsMutations.ts
File metadata and controls
47 lines (42 loc) · 1.16 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { gql } from 'apollo-server-express';
export default gql`
"""
The structure represents payload for toggling receive type
"""
input ChangeUserNotificationsReceiveTypeInput {
IssueAssigning: Boolean
WeeklyDigest: Boolean
}
"""
This object will be returned to the changeUserNotificationsChannel mutation
"""
type changeUserNotificationsChannelResponse {
notifications: UserNotificationsSettings
}
"""
This object will be returned to the changeUserNotificationsReceiveType mutation
"""
type changeUserNotificationsReceiveTypeResponse {
notifications: UserNotificationsSettings
}
extend type Mutation {
"""
Change user notifications channel settings
"""
changeUserNotificationsChannel(
"""
Channel data to update
"""
input: NotificationsChannelsInput!
): changeUserNotificationsChannelResponse!
"""
Toggle user notifications receive type active status
"""
changeUserNotificationsReceiveType(
"""
Receive type with its new is-enabled value
"""
input: ChangeUserNotificationsReceiveTypeInput!
): changeUserNotificationsReceiveTypeResponse!
}
`;