Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Commits
48ed15ab
Commit
48ed15ab
authored
10 months ago
by
permcu
Committed by
Julian
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Sketch queries & mutation
parent
5022a752
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!360
Resolve "Add absence management to course book student dialog"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/alsijil/frontend/components/coursebook/absences/absenceCreation.graphql
+48
-0
48 additions, 0 deletions
...nd/components/coursebook/absences/absenceCreation.graphql
with
48 additions
and
0 deletions
aleksis/apps/alsijil/frontend/components/coursebook/absences/absenceCreation.graphql
0 → 100644
+
48
−
0
View file @
48ed15ab
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
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment