Added vehicle detail form.

This commit is contained in:
Patrick Fic
2020-02-07 11:55:37 -08:00
parent b070b0918c
commit 71bd8df208
15 changed files with 712 additions and 39 deletions

View File

@@ -36,3 +36,13 @@ export const QUERY_VEHICLE_BY_ID = gql`
}
}
`;
export const UPDATE_VEHICLE = gql`
mutation UPDATE_VEHICLE($vehId: uuid!, $vehicle: vehicles_set_input!) {
update_vehicles(where: { id: { _eq: $vehId } }, _set: $vehicle) {
returning {
id
}
}
}
`;