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

Define AbsencesBatchCreateMutation's required arguments

parent 7eff0b73
No related branches found
No related tags found
1 merge request!356Add dialog for creation of long-term absences
...@@ -12,11 +12,11 @@ class LessonsForPersonType(graphene.ObjectType): ...@@ -12,11 +12,11 @@ class LessonsForPersonType(graphene.ObjectType):
class AbsencesBatchCreateMutation(graphene.Mutation): class AbsencesBatchCreateMutation(graphene.Mutation):
class Arguments: class Arguments:
persons = graphene.List(graphene.ID) persons = graphene.List(graphene.ID, required=True)
start = graphene.Date() start = graphene.Date(required=True)
end = graphene.Date() end = graphene.Date(required=True)
comment = graphene.String() comment = graphene.String(required=False)
reason = graphene.ID() reason = graphene.ID(required=True)
ok = graphene.Boolean() ok = graphene.Boolean()
......
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