all repos — caroster @ d093130068a7eaa39a600bd411181a85f168dc74

[Octree] Group carpool to your event https://caroster.io

frontend/graphql/notifications.gql (view raw)

 1query UserNotifications($maxItems: Int = 20) {
 2  me {
 3    profile {
 4      notifications(pagination: {limit: $maxItems}, sort: "createdAt:DESC") {
 5        data {
 6          id
 7          attributes {
 8            type
 9            read
10            createdAt
11            event {
12              data {
13                id
14                attributes {
15                  name
16                  uuid
17                }
18              }
19            }
20          }
21        }
22      }
23    }
24  }
25}
26
27mutation readNotifications($id: ID) {
28  readNotifications(id: $id) {
29    data {
30      id
31      attributes {
32        type
33        read
34      }
35    }
36  }
37}
38