Added vehicle and owner pages/routes.
This commit is contained in:
38
client/src/graphql/vehicles.queries.js
Normal file
38
client/src/graphql/vehicles.queries.js
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user