Skip to content

Commit a2f50be

Browse files
committed
web: slim notification indicator query
1 parent 5f27a8f commit a2f50be

2 files changed

Lines changed: 61 additions & 56 deletions

File tree

src/indexer/documents/queries/account/NotificationIndicator.graphql

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,68 @@ query NotificationIndicator($request: NotificationRequest!) {
22
notifications(request: $request) {
33
items {
44
... on CommentNotification {
5-
...CommentNotification
5+
comment {
6+
timestamp
7+
}
68
}
79
... on FollowNotification {
8-
...FollowNotification
10+
followers {
11+
followedAt
12+
}
913
}
1014
... on GroupMembershipRequestApprovedNotification {
11-
...GroupMembershipRequestApprovedNotification
15+
approvedAt
1216
}
1317
... on GroupMembershipRequestRejectedNotification {
14-
...GroupMembershipRequestRejectedNotification
18+
rejectedAt
1519
}
1620
... on MentionNotification {
17-
...MentionNotification
21+
post {
22+
timestamp
23+
}
1824
}
1925
... on QuoteNotification {
20-
...QuoteNotification
26+
quote {
27+
timestamp
28+
}
2129
}
2230
... on ReactionNotification {
23-
...ReactionNotification
31+
reactions {
32+
reactions {
33+
reactedAt
34+
}
35+
}
2436
}
2537
... on RepostNotification {
26-
...RepostNotification
38+
reposts {
39+
repostedAt
40+
}
2741
}
2842
... on PostActionExecutedNotification {
29-
...PostActionExecutedNotification
43+
actions {
44+
... on SimpleCollectPostActionExecuted {
45+
executedAt
46+
}
47+
... on TippingPostActionExecuted {
48+
executedAt
49+
}
50+
... on UnknownPostActionExecuted {
51+
executedAt
52+
}
53+
}
3054
}
3155
... on AccountActionExecutedNotification {
32-
...AccountActionExecutedNotification
56+
actions {
57+
... on TippingAccountActionExecuted {
58+
executedAt
59+
}
60+
... on UnknownAccountActionExecuted {
61+
executedAt
62+
}
63+
}
3364
}
3465
... on TokenDistributedNotification {
35-
...TokenDistributedNotification
66+
actionDate
3667
}
3768
}
3869
}

0 commit comments

Comments
 (0)