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