all repos — caroster @ v5.0

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

frontend/graphql/notifications.gql (view raw)

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