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

Sketch queries & mutation

parent 1358dd04
No related branches found
No related tags found
1 merge request!361Resolve "Add statistics page for absences"
query persons {
persons: persons {
id
name
}
}
query lessonEventsForAbsences(
$persons: [ID!]!
$start: Date!
$end: Date!
) {
items: lessonEventsForAbsences(
person: $persons
start: $start
end: $end
) {
id
name
lessons {
start
end
course
subject
}
}
}
# Use absencesInputType
mutation createAbsences(
$persons: [ID!]!
$start: Date!
$end: Date!
$comment: String
$reason: ID!
) {
createAbsences(
person: $persons
start: $start
end: $end
comment: $comment
reason: $reason
) {
items: absences {
ok
}
}
}
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