Added vehicle and owner pages/routes.

This commit is contained in:
Patrick Fic
2020-02-07 10:54:08 -08:00
parent b86586241a
commit b070b0918c
20 changed files with 316 additions and 35 deletions

View File

@@ -0,0 +1,38 @@
import { gql } from "apollo-boost";
export const QUERY_VEHICLE_BY_ID = gql`
query QUERY_VEHICLE_BY_ID($id: uuid!) {
vehicles(where: { id: { _eq: $id } }) {
created_at
db_v_code
id
plate_no
plate_st
v_vin
v_type
v_trimcode
v_tone
v_stage
v_prod_dt
v_paint_codes
v_options
v_model_yr
v_model_desc
v_mldgcode
v_makecode
v_make_desc
v_engine
v_cond
v_color
v_bstyle
updated_at
trim_color
jobs {
ro_number
ownr_fn
ownr_ln
clm_no
}
}
}
`;