Skip to content
Snippets Groups Projects
Commit 2c484afa authored by permcu's avatar permcu
Browse files

Define statistics queries (by person & by group)

parent 8388f25d
No related branches found
No related tags found
1 merge request!361Resolve "Add statistics page for absences"
fragment statistics on StatisticsByPersonType {
participationCount
absenceCount
absenceReasons {
id
shortName
name
colour
countAsAbsent
count
}
tardinessSum
tardinessCount
extraMarks {
id
shortName
name
colourFg
colourBg
showInCourseBook
count
}
}
query statisticsByPerson (
$personId: ID!
$termId: ID!
) {
statistics: statisticsByPerson(
$personId: ID!
$termId: ID!
) {
...statistics
}
query statisticsByGroup (
$groupId: ID!
$termId: ID!
) {
statistics: statisticsByGroup(
$groupId: ID!
$termId: ID!
) {
persons {
id
firstName
lastName
...statistics
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment