all repos — caroster @ 5b13f85e1cb3d6c7e11813397bd10bd6bc6b2b69

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

frontend/graphql/event.gql (view raw)

 1fragment EventFields on Event {
 2  id
 3  uuid
 4  name
 5  email
 6  date
 7  address
 8  position
 9  waitingList {
10    id
11    name
12  }
13  cars {
14    id
15    name
16    seats
17    meeting
18    departure
19    details
20    phone_number
21    passengers {
22      id
23      name
24    }
25  }
26}
27
28mutation createEvent(
29  $name: String!
30  $email: String!
31  $date: Date
32  $address: String
33  $newsletter: Boolean
34) {
35  createEvent(
36    input: {
37      data: {
38        name: $name
39        email: $email
40        date: $date
41        address: $address
42        newsletter: $newsletter
43      }
44    }
45  ) {
46    event {
47      ...EventFields
48    }
49  }
50}
51
52mutation updateEvent($uuid: String!, $eventUpdate: editEventInput) {
53  updateEventByUUID(input: {where: {uuid: $uuid}, data: $eventUpdate}) {
54    event {
55      ...EventFields
56    }
57  }
58}
59
60query eventByUUID($uuid: String!) {
61  eventByUUID(uuid: $uuid) {
62    ...EventFields
63  }
64}