all repos — caroster @ 0a124e7bfe667e76e0c82cd4ed95bc0c6dea99d8

[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 {
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}