38 lines
630 B
JavaScript
38 lines
630 B
JavaScript
import { gql } from "apollo-boost";
|
|
|
|
export const QUERY_ALL_APPOINTMENTS = gql`
|
|
query QUERY_ALL_APPOINTMENTS {
|
|
appointments {
|
|
start
|
|
id
|
|
end
|
|
job {
|
|
ro_number
|
|
ownr_ln
|
|
ownr_fn
|
|
ownr_ph1
|
|
ownr_ea
|
|
clm_total
|
|
id
|
|
clm_no
|
|
vehicle {
|
|
id
|
|
v_model_yr
|
|
v_make_desc
|
|
v_model_desc
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const INSERT_APPOINTMENT = gql`
|
|
mutation INSERT_APPOINTMENT($app: [appointments_insert_input!]!) {
|
|
insert_appointments(objects: $app) {
|
|
returning {
|
|
id
|
|
}
|
|
}
|
|
}
|
|
`;
|