Newer
Older
query gqlSubjects {
amendableSubjects: subjects {
id
name
}
}
query gqlPersons {
amendableTeachers: persons {
id
fullName
}
}
query gqlTeachers {
amendableTeachers: teachers {
id
fullName
}
}
query gqlRooms {
amendableRooms: rooms {
id
name
mutation createAmendLessons($input: [BatchCreateLessonEventInput]!) {
createAmendLessons(input: $input) {
items: lessonEvents {
subject {
id
}
teachers {
id
}
groups {
id
}
rooms {
id
}
mutation patchAmendLessons($input: [BatchPatchLessonEventInput]!) {
patchAmendLessons(input: $input) {
items: lessonEvents {
id
subject {
id
}
teachers {
id
}
groups {
id
}
rooms {
id
}
cancelled
comment
}
}
}
mutation createOrUpdateSubstitutions($input: [SubstitutionInputType]!) {
createOrUpdateSubstitutions(input: $input) {
items: substitutions {
subject {
id
shortName
name
colourFg
colourBg
}
teachers {
id
shortName
fullName
}
groups {
id
}
rooms {
id
}
course {
id
subject {
id
shortName
name
colourFg
colourBg
id
teachers {
id
shortName
fullName
}
subject {
id
shortName
name
colourFg
colourBg
}
groups {
id
shortName
}
rooms {
id
shortName
name
}
course {
id
name
}
}
datetimeStart
datetimeEnd
cancelled
comment
}
}
}
deleteAmendLessons(ids: $ids) {
query amendedLessonsFromAbsences(
$objId: ID
$dateStart: Date!
$dateEnd: Date!
) {
items: amendedLessonsFromAbsences(
objId: $objId
dateStart: $dateStart
dateEnd: $dateEnd
subject {
id
shortName
name
colourFg
colourBg
}
teachers {
id
shortName
fullName
}
groups {
id
}
course {
id
subject {
id
shortName
name
colourFg
colourBg
}
name
}
rooms {
id
id
teachers {
id
shortName
fullName
}
subject {
id
shortName
name
colourFg
colourBg
}
groups {
id
shortName
}
course {
id
name
}
rooms {
id
shortName
name
}
}
datetimeStart
datetimeEnd
cancelled
comment
}
}