Table updates for appointments. Initial appointments screen + fetching.
This commit is contained in:
24
client/src/graphql/appointments.queries.js
Normal file
24
client/src/graphql/appointments.queries.js
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
clm_total
|
||||
id
|
||||
vehicle {
|
||||
id
|
||||
v_model_yr
|
||||
v_make_desc
|
||||
v_model_desc
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -47,7 +47,7 @@ export const QUERY_ALL_OPEN_JOBS = gql`
|
||||
name
|
||||
}
|
||||
updated_at
|
||||
claim_total
|
||||
clm_total
|
||||
ded_amt
|
||||
vehicle {
|
||||
id
|
||||
@@ -269,7 +269,7 @@ export const QUERY_JOB_CARD_DETAILS = gql`
|
||||
name
|
||||
}
|
||||
updated_at
|
||||
claim_total
|
||||
clm_total
|
||||
ded_amt
|
||||
documents(limit: 3, order_by: { created_at: desc }) {
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user