amendLesson.graphql 1003 B
query gqlSubjects {
amendableSubjects: subjects {
id
name
}
}
query gqlPersons {
amendableTeachers: persons {
id
fullName
}
}
query gqlRooms {
amendableRooms: rooms {
id
name
}
}
mutation createAmendLesson($input: CreateLessonEventInput!) {
createAmendLesson(input: $input) {
lessonEvent {
id
amends {
id
}
datetimeStart
datetimeEnd
subject {
id
}
teachers {
id
}
groups {
id
}
rooms {
id
}
cancelled
comment
}
}
}
mutation patchAmendLesson($input: PatchLessonEventInput!, $id: ID!) {
patchAmendLesson(input: $input, id: $id) {
lessonEvent {
id
subject {
id
}
teachers {
id
}
groups {
id
}
rooms {
id
}
cancelled
comment
}
}
}
mutation deleteAmendLesson($id: ID!) {
deleteAmendLesson(id: $id) {
ok
}
}