Coursebook frontend loads too much data
query extraMarks($orderBy: [String], $filters: JSONString) {
items: extraMarks(orderBy: $orderBy, filters: $filters) {
id
shortName
name
colourFg
colourBg
showInCoursebook
canEdit
canDelete
__typename
}
}
query absenceReasons($orderBy: [String], $filters: JSONString) {
items: coursebookAbsenceReasons(orderBy: $orderBy, filters: $filters) {
id
shortName
name
colour
default
canEdit
canDelete
__typename
}
}
query subjects($orderBy: [String], $filters: JSONString) {
items: subjects(orderBy: $orderBy, filters: $filters) {
id
name
shortName
parent {
id
name
colourFg
colourBg
__typename
}
colourFg
colourBg
teachers {
id
fullName
__typename
}
canEdit
canDelete
__typename
}
}
query documentationsForCoursebook(
$own: Boolean!
$objId: ID
$objType: String
$dateStart: Date!
$dateEnd: Date!
$incomplete: Boolean
$absencesExist: Boolean
) {
items: documentationsForCoursebook(
own: $own
objId: $objId
objType: $objType
dateStart: $dateStart
dateEnd: $dateEnd
incomplete: $incomplete
absencesExist: $absencesExist
) {
id
course {
id
name
__typename
}
amends {
id
title
slotNumberStart
slotNumberEnd
amends {
id
title
slotNumberStart
slotNumberEnd
teachers {
id
shortName
fullName
avatarContentUrl
__typename
}
subject {
id
name
shortName
colourFg
colourBg
__typename
}
__typename
}
cancelled
__typename
}
teachers {
id
shortName
fullName
avatarContentUrl
__typename
}
subject {
id
name
shortName
colourFg
colourBg
__typename
}
participations {
id
person {
id
firstName
fullName
__typename
}
absenceReason {
id
name
shortName
colour
__typename
}
notesWithExtraMark {
id
extraMark {
id
showInCoursebook
__typename
}
__typename
}
notesWithNote {
id
note
__typename
}
tardiness
isOptimistic
__typename
}
topic
homework
groupNote
datetimeStart
datetimeEnd
dateStart
dateEnd
oldId
canEdit
futureNotice
canDelete
futureNoticeParticipationStatus
canEditParticipationStatus
canViewParticipationStatus
__typename
}
}
{
"own": true,
"dateStart": "2024-11-13",
"dateEnd": "2024-11-27",
"incomplete": false,
"absencesExist": false,
"filters": "{}"
}
query groupsByPerson {
groups: groupsByPerson {
id
name
__typename
}
}
query coursesOfPerson {
courses: coursesOfPerson {
id
name
__typename
}
}
query gqlAbsenceReasons {
absenceReasons {
id
shortName
name
default
colour
__typename
}
}