IO-1391 Scoreboard Improvements

This commit is contained in:
Patrick Fic
2021-09-28 13:19:02 -07:00
parent aa410d6847
commit eb58274f90
4 changed files with 110 additions and 13 deletions

View File

@@ -62,3 +62,23 @@ export const QUERY_SCOREBOARD_ENTRY = gql`
}
}
`;
export const GET_BLOCKED_DAYS = gql`
query GET_BLOCKED_DAYS($start: timestamptz, $end: timestamptz) {
appointments(
where: {
_and: [
{ block: { _eq: true } }
{ canceled: { _eq: false } }
{ start: { _gte: $start } }
{ end: { _lte: $end } }
]
}
) {
id
block
start
end
}
}
`;