From caf5613e5fff0d46e5be1275df7b614ce60df3a9 Mon Sep 17 00:00:00 2001
From: Michael Bauer <michael-bauer@posteo.de>
Date: Sun, 6 Oct 2024 16:17:56 +0200
Subject: [PATCH] Fill out substitutions-list's query-schema

---
 .../frontend/components/substitutions.graphql | 23 +++++++++++++------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/aleksis/apps/chronos/frontend/components/substitutions.graphql b/aleksis/apps/chronos/frontend/components/substitutions.graphql
index 4e372b2c..1c5ccd3c 100644
--- a/aleksis/apps/chronos/frontend/components/substitutions.graphql
+++ b/aleksis/apps/chronos/frontend/components/substitutions.graphql
@@ -1,25 +1,34 @@
 query substitutionsForDate ($date: Date!) {
   substitutionsForDate(date: $date) {
     affectedTeachers {
+      shortName
+      fullName
     }
     affectedGroups {
+      shortName
     }
     substitutions {
       groups {
+        shortName
       }
       period {
-      
+        startSlot
+        endSlot
+        startTime
+        endTime
+        wholeDay
       }
       teachers {
+        shortName
+        fullName
       }
-      subject {
-      }
+      subject
       rooms {
+        shortName
+        name
       }
-      badge {
-      }
-      comment {
-      }
+      cancelled
+      comment
     }
   }
 }
\ No newline at end of file
-- 
GitLab