Adding of generic appointments to calendar.
This commit is contained in:
@@ -6,6 +6,8 @@ export const QUERY_ALL_ACTIVE_APPOINTMENTS = gql`
|
||||
start
|
||||
id
|
||||
end
|
||||
title
|
||||
isintake
|
||||
job {
|
||||
ro_number
|
||||
ownr_ln
|
||||
@@ -38,10 +40,14 @@ export const INSERT_APPOINTMENT = gql`
|
||||
|
||||
export const QUERY_APPOINTMENT_BY_DATE = gql`
|
||||
query QUERY_APPOINTMENT_BY_DATE($start: timestamptz, $end: timestamptz) {
|
||||
appointments(where: { start: { _lte: $end, _gte: $start } }) {
|
||||
appointments(
|
||||
where: { start: { _lte: $end, _gte: $start }, canceled: { _eq: false } }
|
||||
) {
|
||||
start
|
||||
id
|
||||
end
|
||||
title
|
||||
isintake
|
||||
job {
|
||||
ro_number
|
||||
ownr_ln
|
||||
@@ -81,6 +87,7 @@ export const QUERY_APPOINTMENTS_BY_JOBID = gql`
|
||||
start
|
||||
id
|
||||
end
|
||||
isintake
|
||||
arrived
|
||||
canceled
|
||||
created_at
|
||||
|
||||
Reference in New Issue
Block a user