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

Sketch queries & mutation

parent e1d9099f
No related branches found
No related tags found
1 merge request!362Resolve "Add personal note management dialog in course book"
Pipeline #181833 failed
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