all repos — caroster @ 2b7fb817e6b5f6f8cec73d78960ce1695fa318a9

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

frontend/graphql/vehicle.gql (view raw)

 1fragment VehicleFields on VehicleEntity {
 2  id
 3  attributes {
 4    name
 5    seats
 6    phone_number
 7  }
 8}
 9
10query findUserVehicles {
11  me {
12    id
13    username
14    profile {
15      vehicles(pagination: {limit: 500}) {
16        data {
17          ...VehicleFields
18        }
19      }
20    }
21  }
22}
23
24mutation deleteVehicle($id: ID!) {
25  deleteVehicle(id: $id) {
26    data {
27      id
28      attributes {
29        name
30      }
31    }
32  }
33}