Calendar

Models:

Calendars

  • id - string, 2 letters abbreviation - day of week (MO, TU, WE, TH, FR, SA, SU)

  • isWeekend - boolean

  • begin - string, 5 letter max (e.g. 10:30, 9:00)

  • end - string, 5 letter max

CalendarExceptions

  • id - date

  • isWeekend - boolean

  • begin - string, 5 letter max (e.g. 10:30, 9:00)

  • end - string, 5 letter max

Admin mutations:

saveCalendar

mutation { saveCalendar( calendar: [ { id:"mo", isWeekend:false, begin: "9:00", end:"14:00" }, { id:"tu", isWeekend:false, begin: "9:00", end:"17:00" }, { id:"we", isWeekend:false, begin: "9:00", end:"17:00" }, { id:"th", isWeekend:false, begin: "9:00", end:"17:00" }, { id:"fr", isWeekend:false, begin: "9:00", end:"16:00" }, { id:"sa", isWeekend:true }, { id:"su", isWeekend:true } ] ) }

saveCalendarException

mutation { saveCalendarException( date:"2024-06-28" isWeekend:true ) }

deleteCalendarException

mutation { deleteCalendarException( date:"2024-06-28" ) }

Â