34a96088811a0259c027eca23f3c1d9203400e87
Integration.md
... | ... | @@ -66,6 +66,7 @@ type enrolment{ |
66 | 66 | startDate: String |
67 | 67 | endDate: String |
68 | 68 | status: String |
69 | + sessions(date): [session] |
|
69 | 70 | } |
70 | 71 | /* Date strings are 10 char ISO dates in tz of centre |
71 | 72 | /* Status values are : 'Exited' , 'Not yet submitted' , Active |
... | ... | @@ -96,9 +97,17 @@ type booking{ |
96 | 97 | } |
97 | 98 | |
98 | 99 | /* "day" is a 3 character abreviation of day of the week MON , TUE, WED , THU , FRI , SAT , SUN |
100 | + |
|
101 | +type session{ |
|
102 | + room: String; |
|
103 | + startTime: String; |
|
104 | + endTime: String; |
|
105 | + absent: Boolean; |
|
106 | + } |
|
107 | +/* time is passed as hh:mm:ss in local time of the centre |
|
99 | 108 | ``` |
100 | 109 | |
101 | -### Sample Query |
|
110 | +### Sample Query 1 |
|
102 | 111 | |
103 | 112 | ``` |
104 | 113 | { |
... | ... | @@ -133,4 +142,46 @@ type booking{ |
133 | 142 | } |
134 | 143 | }" |
135 | 144 | } |
145 | +``` |
|
146 | + |
|
147 | +### Sample Query 2 |
|
148 | +``` |
|
149 | +{ |
|
150 | + "query": "{ |
|
151 | + service(id: 1) { |
|
152 | + id |
|
153 | + enrolments { |
|
154 | + child { |
|
155 | + id |
|
156 | + firstName |
|
157 | + lastName |
|
158 | + } |
|
159 | + parent1 { |
|
160 | + id |
|
161 | + firstName |
|
162 | + lastName |
|
163 | + email |
|
164 | + } |
|
165 | + parent2 { |
|
166 | + firstName |
|
167 | + lastName |
|
168 | + email |
|
169 | + } |
|
170 | + |
|
171 | + startDate |
|
172 | + status |
|
173 | + bookings { |
|
174 | + day |
|
175 | + room |
|
176 | + } |
|
177 | + sessions(date: \"2020-01-08\") { |
|
178 | + room |
|
179 | + startTime |
|
180 | + endTime |
|
181 | + absent |
|
182 | + } |
|
183 | + } |
|
184 | + } |
|
185 | + }" |
|
186 | +} |
|
136 | 187 | ``` |
... | ... | \ No newline at end of file |