Best JavaScript code snippet using stryker-parent
data_init.js
Source:data_init.js
...57// LunchUnits58db.lunchunits.insertMany([59 { lunch: "Lasagne", 60 mentors: [61 db.users.findOne({ email: "mentor1@gmail.com" })._id,62 db.users.findOne({ email: "mentor3@gmail.com" })._id63 ], 64 clients: [65 66 ] },67 { lunch: "Vol-au-vent met frietjes", 68 mentors: [69 db.users.findOne({ email: "mentor1@gmail.com" })._id,70 db.users.findOne({ email: "mentor3@gmail.com" })._id71 ], 72 clients: [73 db.users.findOne({ email: "client1@gmail.com" })._id,74 db.users.findOne({ email: "client2@gmail.com" })._id,75 db.users.findOne({ email: "client4@gmail.com" })._id,76 db.users.findOne({ email: "client8@gmail.com" })._id,77 db.users.findOne({ email: "client9@gmail.com" })._id,78 db.users.findOne({ email: "client11@gmail.com" })._id,79 db.users.findOne({ email: "client15@gmail.com" })._id80 ] },81 { lunch: "Spaghetti bolognese", 82 mentors: [83 db.users.findOne({ email: "mentor1@gmail.com" })._id,84 db.users.findOne({ email: "mentor3@gmail.com" })._id85 ], 86 clients: [87 db.users.findOne({ email: "client1@gmail.com" })._id,88 db.users.findOne({ email: "client2@gmail.com" })._id,89 db.users.findOne({ email: "client4@gmail.com" })._id,90 db.users.findOne({ email: "client8@gmail.com" })._id,91 db.users.findOne({ email: "client9@gmail.com" })._id,92 db.users.findOne({ email: "client11@gmail.com" })._id,93 db.users.findOne({ email: "client15@gmail.com" })._id94 ] },95 { lunch: "Stoofvlees met gebakken aardappelen", 96 mentors: [97 db.users.findOne({ email: "mentor1@gmail.com" })._id,98 db.users.findOne({ email: "mentor3@gmail.com" })._id99 ], 100 clients: [101 db.users.findOne({ email: "client1@gmail.com" })._id,102 db.users.findOne({ email: "client2@gmail.com" })._id,103 db.users.findOne({ email: "client4@gmail.com" })._id,104 db.users.findOne({ email: "client5@gmail.com" })._id,105 db.users.findOne({ email: "client9@gmail.com" })._id,106 db.users.findOne({ email: "client12@gmail.com" })._id,107 db.users.findOne({ email: "client15@gmail.com" })._id108 ] },109 { lunch: "Fishsticks met purree en spinazie", 110 mentors: [111 db.users.findOne({ email: "mentor1@gmail.com" })._id,112 db.users.findOne({ email: "mentor3@gmail.com" })._id113 ], 114 clients: [115 db.users.findOne({ email: "client1@gmail.com" })._id,116 db.users.findOne({ email: "client2@gmail.com" })._id,117 db.users.findOne({ email: "client4@gmail.com" })._id,118 db.users.findOne({ email: "client8@gmail.com" })._id,119 db.users.findOne({ email: "client10@gmail.com" })._id,120 db.users.findOne({ email: "client12@gmail.com" })._id,121 db.users.findOne({ email: "client14@gmail.com" })._id122 ] },123 { lunch: "Worst met aardappelen en doperwten", 124 mentors: [125 db.users.findOne({ email: "mentor1@gmail.com" })._id,126 db.users.findOne({ email: "mentor3@gmail.com" })._id127 ], 128 clients: [129 db.users.findOne({ email: "client1@gmail.com" })._id,130 db.users.findOne({ email: "client2@gmail.com" })._id,131 db.users.findOne({ email: "client4@gmail.com" })._id,132 db.users.findOne({ email: "client8@gmail.com" })._id,133 db.users.findOne({ email: "client9@gmail.com" })._id,134 db.users.findOne({ email: "client11@gmail.com" })._id,135 db.users.findOne({ email: "client15@gmail.com" })._id136 ] },137 { lunch: "Kip met rijst en ananas", 138 mentors: [139 db.users.findOne({ email: "mentor1@gmail.com" })._id,140 db.users.findOne({ email: "mentor3@gmail.com" })._id141 ], 142 clients: [143 db.users.findOne({ email: "client1@gmail.com" })._id,144 db.users.findOne({ email: "client2@gmail.com" })._id,145 db.users.findOne({ email: "client4@gmail.com" })._id,146 db.users.findOne({ email: "client8@gmail.com" })._id,147 db.users.findOne({ email: "client9@gmail.com" })._id,148 db.users.findOne({ email: "client11@gmail.com" })._id,149 db.users.findOne({ email: "client15@gmail.com" })._id150 ] },151 { lunch: "Boomstammetje met aardappelen en wortels", 152 mentors: [153 db.users.findOne({ email: "mentor1@gmail.com" })._id,154 db.users.findOne({ email: "mentor3@gmail.com" })._id155 ], 156 clients: [157 db.users.findOne({ email: "client1@gmail.com" })._id,158 db.users.findOne({ email: "client3@gmail.com" })._id,159 db.users.findOne({ email: "client7@gmail.com" })._id,160 db.users.findOne({ email: "client8@gmail.com" })._id,161 db.users.findOne({ email: "client9@gmail.com" })._id,162 db.users.findOne({ email: "client11@gmail.com" })._id,163 db.users.findOne({ email: "client15@gmail.com" })._id164 ] },165 { lunch: "Kabeljauw met preipurree", 166 mentors: [167 db.users.findOne({ email: "mentor1@gmail.com" })._id,168 db.users.findOne({ email: "mentor3@gmail.com" })._id169 ], 170 clients: [171 db.users.findOne({ email: "client1@gmail.com" })._id,172 db.users.findOne({ email: "client2@gmail.com" })._id,173 db.users.findOne({ email: "client4@gmail.com" })._id,174 db.users.findOne({ email: "client8@gmail.com" })._id,175 db.users.findOne({ email: "client9@gmail.com" })._id,176 db.users.findOne({ email: "client11@gmail.com" })._id,177 db.users.findOne({ email: "client15@gmail.com" })._id178 ] }179])180// ActivityUnits181db.activityunits.insertMany([182 { activity: db.activities.findOne({ name: "Weekschema" })._id, 183 mentors: [184 db.users.findOne({ email: "mentor1@gmail.com" })._id,185 db.users.findOne({ email: "mentor3@gmail.com" })._id186 ], 187 clients: [188 db.users.findOne({ email: "client1@gmail.com" })._id,189 db.users.findOne({ email: "client2@gmail.com" })._id,190 db.users.findOne({ email: "client5@gmail.com" })._id,191 db.users.findOne({ email: "client8@gmail.com" })._id,192 db.users.findOne({ email: "client9@gmail.com" })._id,193 db.users.findOne({ email: "client10@gmail.com" })._id,194 db.users.findOne({ email: "client14@gmail.com" })._id195 ] },196 { activity: db.activities.findOne({ name: "Sfeergroep" })._id, 197 mentors: [198 db.users.findOne({ email: "mentor2@gmail.com" })._id,199 db.users.findOne({ email: "mentor4@gmail.com" })._id200 ], 201 clients: [202 db.users.findOne({ email: "client2@gmail.com" })._id,203 db.users.findOne({ email: "client4@gmail.com" })._id,204 db.users.findOne({ email: "client5@gmail.com" })._id,205 db.users.findOne({ email: "client8@gmail.com" })._id,206 db.users.findOne({ email: "client9@gmail.com" })._id,207 db.users.findOne({ email: "client10@gmail.com" })._id,208 db.users.findOne({ email: "client14@gmail.com" })._id209 ] },210 { activity: db.activities.findOne({ name: "Markt" })._id, 211 mentors: [212 db.users.findOne({ email: "mentor3@gmail.com" })._id,213 db.users.findOne({ email: "mentor5@gmail.com" })._id214 ], 215 clients: [216 db.users.findOne({ email: "client1@gmail.com" })._id,217 db.users.findOne({ email: "client2@gmail.com" })._id,218 db.users.findOne({ email: "client5@gmail.com" })._id,219 db.users.findOne({ email: "client8@gmail.com" })._id,220 db.users.findOne({ email: "client9@gmail.com" })._id,221 db.users.findOne({ email: "client12@gmail.com" })._id,222 db.users.findOne({ email: "client14@gmail.com" })._id223 ] },224 { activity: db.activities.findOne({ name: "Kaarsenatelier" })._id, 225 mentors: [226 db.users.findOne({ email: "mentor1@gmail.com" })._id,227 db.users.findOne({ email: "mentor5@gmail.com" })._id228 ], 229 clients: [230 db.users.findOne({ email: "client1@gmail.com" })._id,231 db.users.findOne({ email: "client2@gmail.com" })._id,232 db.users.findOne({ email: "client6@gmail.com" })._id,233 db.users.findOne({ email: "client8@gmail.com" })._id,234 db.users.findOne({ email: "client9@gmail.com" })._id,235 db.users.findOne({ email: "client12@gmail.com" })._id,236 db.users.findOne({ email: "client14@gmail.com" })._id237 ] },238 { activity: db.activities.findOne({ name: "Beleving" })._id, 239 mentors: [240 db.users.findOne({ email: "mentor1@gmail.com" })._id,241 db.users.findOne({ email: "mentor2@gmail.com" })._id242 ], 243 clients: [244 db.users.findOne({ email: "client3@gmail.com" })._id,245 db.users.findOne({ email: "client4@gmail.com" })._id,246 db.users.findOne({ email: "client7@gmail.com" })._id,247 db.users.findOne({ email: "client10@gmail.com" })._id248 ] },249 { activity: db.activities.findOne({ name: "Bib" })._id, 250 mentors: [251 db.users.findOne({ email: "mentor4@gmail.com" })._id,252 db.users.findOne({ email: "mentor5@gmail.com" })._id253 ], 254 clients: [255 db.users.findOne({ email: "client3@gmail.com" })._id,256 db.users.findOne({ email: "client6@gmail.com" })._id,257 db.users.findOne({ email: "client7@gmail.com" })._id,258 db.users.findOne({ email: "client11@gmail.com" })._id259 ] },260 { activity: db.activities.findOne({ name: "Praatcafé" })._id, 261 mentors: [262 db.users.findOne({ email: "mentor2@gmail.com" })._id,263 db.users.findOne({ email: "mentor3@gmail.com" })._id264 ], 265 clients: [266 db.users.findOne({ email: "client3@gmail.com" })._id,267 db.users.findOne({ email: "client4@gmail.com" })._id,268 db.users.findOne({ email: "client8@gmail.com" })._id,269 db.users.findOne({ email: "client12@gmail.com" })._id270 ] },271 { activity: db.activities.findOne({ name: "Spik en span" })._id, 272 mentors: [273 db.users.findOne({ email: "mentor3@gmail.com" })._id,274 db.users.findOne({ email: "mentor4@gmail.com" })._id275 ], 276 clients: [277 db.users.findOne({ email: "client2@gmail.com" })._id,278 db.users.findOne({ email: "client3@gmail.com" })._id279 ] },280 { activity: db.activities.findOne({ name: "Werkplaats" })._id, 281 mentors: [282 db.users.findOne({ email: "mentor1@gmail.com" })._id,283 db.users.findOne({ email: "mentor4@gmail.com" })._id284 ], 285 clients: [286 db.users.findOne({ email: "client3@gmail.com" })._id,287 db.users.findOne({ email: "client8@gmail.com" })._id,288 db.users.findOne({ email: "client9@gmail.com" })._id,289 db.users.findOne({ email: "client10@gmail.com" })._id290 ] },291 { activity: db.activities.findOne({ name: "Feest" })._id, 292 mentors: [293 db.users.findOne({ email: "mentor2@gmail.com" })._id,294 db.users.findOne({ email: "mentor5@gmail.com" })._id295 ], 296 clients: [297 db.users.findOne({ email: "client3@gmail.com" })._id,298 db.users.findOne({ email: "client4@gmail.com" })._id,299 db.users.findOne({ email: "client5@gmail.com" })._id,300 db.users.findOne({ email: "client8@gmail.com" })._id,301 db.users.findOne({ email: "client9@gmail.com" })._id,302 db.users.findOne({ email: "client10@gmail.com" })._id,303 db.users.findOne({ email: "client12@gmail.com" })._id,304 db.users.findOne({ email: "client13@gmail.com" })._id305 ] }306])307// BusUnits308db.busunits.insertMany([309 { bus: db.busses.findOne({ name: "Geel" })._id, 310 mentors: [311 db.users.findOne({ email: "mentor4@gmail.com" })._id,312 db.users.findOne({ email: "mentor5@gmail.com" })._id313 ], 314 clients: [315 db.users.findOne({ email: "client1@gmail.com" })._id,316 db.users.findOne({ email: "client2@gmail.com" })._id,317 db.users.findOne({ email: "client5@gmail.com" })._id,318 db.users.findOne({ email: "client10@gmail.com" })._id319 ] },320 { bus: db.busses.findOne({ name: "Beige" })._id,321 mentors: [322 db.users.findOne({ email: "mentor2@gmail.com" })._id,323 db.users.findOne({ email: "mentor3@gmail.com" })._id324 ], 325 clients: [326 db.users.findOne({ email: "client3@gmail.com" })._id,327 db.users.findOne({ email: "client4@gmail.com" })._id,328 db.users.findOne({ email: "client7@gmail.com" })._id,329 db.users.findOne({ email: "client10@gmail.com" })._id330 ] },331 { bus: db.busses.findOne({ name: "Blauw" })._id,332 mentors: [333 db.users.findOne({ email: "mentor1@gmail.com" })._id,334 db.users.findOne({ email: "mentor5@gmail.com" })._id335 ], 336 clients: [337 db.users.findOne({ email: "client3@gmail.com" })._id,338 db.users.findOne({ email: "client4@gmail.com" })._id,339 db.users.findOne({ email: "client7@gmail.com" })._id340 ] }341])342// WorkdayTemplates343db.workdaytemplates.insertMany([344 { templateName: "Template 1", weekNumber: 1, dayNumber: 1, 345 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 346 morningBusses: [347 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,348 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id349 ],350 amActivities: [351 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Weekschema" })._id })._id,352 ],353 lunch: db.lunchunits.findOne({ lunch: "Lasagne" })._id,354 pmActivities: [355 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Markt" })._id })._id356 ],357 eveningBusses: [358 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,359 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id360 ] },361 { templateName: "Template 1", weekNumber: 1, dayNumber: 2, 362 daycareMentors: [363 db.users.findOne({ email: "mentor4@gmail.com" })._id,364 db.users.findOne({ email: "mentor5@gmail.com" })._id365 ], 366 morningBusses: [367 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,368 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id369 ], 370 amActivities: [371 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Sfeergroep" })._id })._id,372 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Praatcafé" })._id })._id373 ],374 lunch: db.lunchunits.findOne({ lunch: "Spaghetti bolognese" })._id,375 pmActivities: [376 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Spik en span" })._id })._id,377 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Feest" })._id })._id378 ],379 eveningBusses: [380 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,381 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id382 ] },383 { templateName: "Template 1", weekNumber: 1, dayNumber: 3, 384 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 385 morningBusses: [386 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,387 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id388 ], 389 amActivities: [390 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Werkplaats" })._id })._id,391 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id392 ],393 lunch: db.lunchunits.findOne({ lunch: "Fishsticks met purree en spinazie" })._id,394 pmActivities: [395 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id,396 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Spik en span" })._id })._id397 ],398 eveningBusses: [399 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,400 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id401 ] },402 { templateName: "Template 1", weekNumber: 1, dayNumber: 4, 403 daycareMentors: [db.users.findOne({ email: "mentor3@gmail.com" })._id], 404 morningBusses: [405 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,406 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id407 ], 408 amActivities: [409 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Sfeergroep" })._id })._id,410 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id411 ],412 lunch: db.lunchunits.findOne({ lunch: "Vol-au-vent met frietjes" })._id,413 pmActivities: [414 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Werkplaats" })._id })._id415 ],416 eveningBusses: [417 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,418 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id419 ] },420 { templateName: "Template 1", weekNumber: 1, dayNumber: 5, 421 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 422 morningBusses: [423 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,424 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id425 ], 426 amActivities: [427 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Praatcafé" })._id })._id,428 ],429 lunch: db.lunchunits.findOne({ lunch: "Worst met aardappelen en doperwten" })._id,430 pmActivities: [431 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id432 ],433 eveningBusses: [434 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,435 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id436 ] },437 { templateName: "Template 1", weekNumber: 2, dayNumber: 1, 438 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 439 morningBusses: [440 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id441 ], 442 amActivities: [443 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Weekschema" })._id })._id,444 ],445 lunch: db.lunchunits.findOne({ lunch: "Kip met rijst en ananas" })._id,446 pmActivities: [447 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Sfeergroep" })._id })._id448 ],449 eveningBusses: [450 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id451 ] },452 { templateName: "Template 1", weekNumber: 2, dayNumber: 2, 453 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 454 morningBusses: [455 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id456 ], 457 amActivities: [458 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Markt" })._id })._id459 ],460 lunch: db.lunchunits.findOne({ lunch: "Boomstammetje met aardappelen en wortels" })._id,461 pmActivities: [462 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id463 ],464 eveningBusses: [465 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id466 ] },467 { templateName: "Template 1", weekNumber: 2, dayNumber: 3, 468 daycareMentors: [db.users.findOne({ email: "mentor2@gmail.com" })._id], 469 morningBusses: [470 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,471 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id472 ], 473 amActivities: [474 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id475 ],476 lunch: db.lunchunits.findOne({ lunch: "Kabeljauw met preipurree" })._id,477 pmActivities: [478 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Praatcafé" })._id })._id,479 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Spik en span" })._id })._id480 ],481 eveningBusses: [482 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,483 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id484 ] },485 { templateName: "Template 1", weekNumber: 2, dayNumber: 4, 486 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 487 morningBusses: [488 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,489 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id490 ], 491 amActivities: [492 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Werkplaats" })._id })._id493 ],494 lunch: db.lunchunits.findOne({ lunch: "Lasagne" })._id,495 pmActivities: [496 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Feest" })._id })._id497 ],498 eveningBusses: [499 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,500 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id501 ] },502 { templateName: "Template 1", weekNumber: 2, dayNumber: 5, 503 daycareMentors: [db.users.findOne({ email: "mentor1@gmail.com" })._id], 504 morningBusses: [505 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,506 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id507 ], 508 amActivities: [509 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id510 ],511 lunch: db.lunchunits.findOne({ lunch: "Vol-au-vent met frietjes" })._id,512 pmActivities: [513 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Sfeergroep" })._id })._id514 ],515 eveningBusses: [516 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,517 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id518 ] },519 { templateName: "Template 1", weekNumber: 3, dayNumber: 1, 520 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 521 morningBusses: [522 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id523 ], 524 amActivities: [525 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Weekschema" })._id })._id526 ],527 lunch: db.lunchunits.findOne({ lunch: "Spaghetti bolognese" })._id,528 pmActivities: [529 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Werkplaats" })._id })._id,530 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id531 ],532 eveningBusses: [533 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id534 ] },535 { templateName: "Template 1", weekNumber: 3, dayNumber: 2, 536 daycareMentors: [db.users.findOne({ email: "mentor3@gmail.com" })._id], 537 morningBusses: [538 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,539 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id540 ], 541 amActivities: [542 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Praatcafé" })._id })._id543 ],544 lunch: db.lunchunits.findOne({ lunch: "Stoofvlees met gebakken aardappelen" })._id,545 pmActivities: [546 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id547 ],548 eveningBusses: [549 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,550 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id551 ] },552 { templateName: "Template 1", weekNumber: 3, dayNumber: 3, 553 daycareMentors: [db.users.findOne({ email: "mentor2@gmail.com" })._id], 554 morningBusses: [555 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id556 ], 557 amActivities: [558 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Kaarsenatelier" })._id })._id559 ],560 lunch: db.lunchunits.findOne({ lunch: "Fishsticks met purree en spinazie" })._id,561 pmActivities: [562 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Markt" })._id })._id563 ],564 eveningBusses: [565 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id566 ] },567 { templateName: "Template 1", weekNumber: 3, dayNumber: 4, 568 daycareMentors: [db.users.findOne({ email: "mentor4@gmail.com" })._id], 569 morningBusses: [570 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,571 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id572 ], 573 amActivities: [574 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Feest" })._id })._id575 ],576 lunch: db.lunchunits.findOne({ lunch: "Worst met aardappelen en doperwten" })._id,577 pmActivities: [578 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Spik en span" })._id })._id579 ],580 eveningBusses: [581 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,582 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id583 ] },584 { templateName: "Template 1", weekNumber: 3, dayNumber: 5, 585 daycareMentors: [db.users.findOne({ email: "mentor1@gmail.com" })._id], 586 morningBusses: [587 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,588 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id589 ], 590 amActivities: [591 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id592 ],593 lunch: db.lunchunits.findOne({ lunch: "Kip met rijst en ananas" })._id,594 pmActivities: [595 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id,596 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Feest" })._id })._id597 ],598 eveningBusses: [599 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,600 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id601 ] },602 { templateName: "Template 1", weekNumber: 4, dayNumber: 1, 603 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 604 morningBusses: [605 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,606 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id607 ], 608 amActivities: [609 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Weekschema" })._id })._id610 ],611 lunch: db.lunchunits.findOne({ lunch: "Boomstammetje met aardappelen en wortels" })._id,612 pmActivities: [613 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id614 ],615 eveningBusses: [616 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,617 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id618 ] },619 { templateName: "Template 1", weekNumber: 4, dayNumber: 2, 620 daycareMentors: [db.users.findOne({ email: "mentor3@gmail.com" })._id], 621 morningBusses: [622 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,623 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id624 ], 625 amActivities: [626 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Kaarsenatelier" })._id })._id,627 ],628 lunch: db.lunchunits.findOne({ lunch: "Kabeljauw met preipurree" })._id,629 pmActivities: [630 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id631 ],632 eveningBusses: [633 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,634 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id635 ] },636 { templateName: "Template 1", weekNumber: 4, dayNumber: 3, 637 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 638 morningBusses: [639 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,640 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id641 ], 642 amActivities: [643 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Werkplaats" })._id })._id644 ],645 lunch: db.lunchunits.findOne({ lunch: "Spaghetti bolognese" })._id,646 pmActivities: [647 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Feest" })._id })._id648 ],649 eveningBusses: [650 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,651 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id652 ] },653 { templateName: "Template 1", weekNumber: 4, dayNumber: 4, 654 daycareMentors: [db.users.findOne({ email: "mentor1@gmail.com" })._id], 655 morningBusses: [656 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,657 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id658 ], 659 amActivities: [660 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id,661 ],662 lunch: db.lunchunits.findOne({ lunch: "Stoofvlees met gebakken aardappelen" })._id,663 pmActivities: [664 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Markt" })._id })._id665 ],666 eveningBusses: [667 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,668 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id669 ] },670 { templateName: "Template 1", weekNumber: 4, dayNumber: 5, 671 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 672 morningBusses: [673 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,674 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id675 ], 676 amActivities: [677 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Spik en span" })._id })._id,678 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Praatcafé" })._id })._id679 ],680 lunch: db.lunchunits.findOne({ lunch: "Lasagne" })._id,681 pmActivities: [682 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id683 ],684 eveningBusses: [685 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,686 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id687 ] },688 { templateName: "Template kopie", weekNumber: 1, dayNumber: 1, 689 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 690 morningBusses: [691 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,692 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id693 ],694 amActivities: [695 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Weekschema" })._id })._id,696 ],697 lunch: db.lunchunits.findOne({ lunch: "Lasagne" })._id,698 pmActivities: [699 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Markt" })._id })._id700 ],701 eveningBusses: [702 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,703 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id704 ] },705 { templateName: "Template kopie", weekNumber: 1, dayNumber: 2, 706 daycareMentors: [707 db.users.findOne({ email: "mentor4@gmail.com" })._id,708 db.users.findOne({ email: "mentor5@gmail.com" })._id709 ], 710 morningBusses: [711 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,712 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id713 ], 714 amActivities: [715 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Sfeergroep" })._id })._id,716 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Praatcafé" })._id })._id717 ],718 lunch: db.lunchunits.findOne({ lunch: "Spaghetti bolognese" })._id,719 pmActivities: [720 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Spik en span" })._id })._id,721 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Feest" })._id })._id722 ],723 eveningBusses: [724 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,725 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id726 ] },727 { templateName: "Template kopie", weekNumber: 1, dayNumber: 3, 728 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 729 morningBusses: [730 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,731 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id732 ], 733 amActivities: [734 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Werkplaats" })._id })._id,735 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id736 ],737 lunch: db.lunchunits.findOne({ lunch: "Fishsticks met purree en spinazie" })._id,738 pmActivities: [739 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id,740 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Spik en span" })._id })._id741 ],742 eveningBusses: [743 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,744 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id745 ] },746 { templateName: "Template kopie", weekNumber: 1, dayNumber: 4, 747 daycareMentors: [db.users.findOne({ email: "mentor3@gmail.com" })._id], 748 morningBusses: [749 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,750 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id751 ], 752 amActivities: [753 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Sfeergroep" })._id })._id,754 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id755 ],756 lunch: db.lunchunits.findOne({ lunch: "Vol-au-vent met frietjes" })._id,757 pmActivities: [758 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Werkplaats" })._id })._id759 ],760 eveningBusses: [761 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,762 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id763 ] },764 { templateName: "Template kopie", weekNumber: 1, dayNumber: 5, 765 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 766 morningBusses: [767 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,768 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id769 ], 770 amActivities: [771 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Praatcafé" })._id })._id,772 ],773 lunch: db.lunchunits.findOne({ lunch: "Worst met aardappelen en doperwten" })._id,774 pmActivities: [775 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id776 ],777 eveningBusses: [778 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,779 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id780 ] },781 { templateName: "Template kopie", weekNumber: 2, dayNumber: 1, 782 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 783 morningBusses: [784 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id785 ], 786 amActivities: [787 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Weekschema" })._id })._id,788 ],789 lunch: db.lunchunits.findOne({ lunch: "Kip met rijst en ananas" })._id,790 pmActivities: [791 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Sfeergroep" })._id })._id792 ],793 eveningBusses: [794 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id795 ] },796 { templateName: "Template kopie", weekNumber: 2, dayNumber: 2, 797 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 798 morningBusses: [799 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id800 ], 801 amActivities: [802 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Markt" })._id })._id803 ],804 lunch: db.lunchunits.findOne({ lunch: "Boomstammetje met aardappelen en wortels" })._id,805 pmActivities: [806 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id807 ],808 eveningBusses: [809 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id810 ] },811 { templateName: "Template kopie", weekNumber: 2, dayNumber: 3, 812 daycareMentors: [db.users.findOne({ email: "mentor2@gmail.com" })._id], 813 morningBusses: [814 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,815 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id816 ], 817 amActivities: [818 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id819 ],820 lunch: db.lunchunits.findOne({ lunch: "Kabeljauw met preipurree" })._id,821 pmActivities: [822 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Praatcafé" })._id })._id,823 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Spik en span" })._id })._id824 ],825 eveningBusses: [826 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,827 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id828 ] },829 { templateName: "Template kopie", weekNumber: 2, dayNumber: 4, 830 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 831 morningBusses: [832 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,833 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id834 ], 835 amActivities: [836 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Werkplaats" })._id })._id837 ],838 lunch: db.lunchunits.findOne({ lunch: "Lasagne" })._id,839 pmActivities: [840 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Feest" })._id })._id841 ],842 eveningBusses: [843 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,844 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id845 ] },846 { templateName: "Template kopie", weekNumber: 2, dayNumber: 5, 847 daycareMentors: [db.users.findOne({ email: "mentor1@gmail.com" })._id], 848 morningBusses: [849 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,850 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id851 ], 852 amActivities: [853 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id854 ],855 lunch: db.lunchunits.findOne({ lunch: "Vol-au-vent met frietjes" })._id,856 pmActivities: [857 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Sfeergroep" })._id })._id858 ],859 eveningBusses: [860 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,861 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id862 ] },863 { templateName: "Template kopie", weekNumber: 3, dayNumber: 1, 864 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 865 morningBusses: [866 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id867 ], 868 amActivities: [869 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Weekschema" })._id })._id870 ],871 lunch: db.lunchunits.findOne({ lunch: "Spaghetti bolognese" })._id,872 pmActivities: [873 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Werkplaats" })._id })._id,874 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id875 ],876 eveningBusses: [877 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id878 ] },879 { templateName: "Template kopie", weekNumber: 3, dayNumber: 2, 880 daycareMentors: [db.users.findOne({ email: "mentor3@gmail.com" })._id], 881 morningBusses: [882 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,883 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id884 ], 885 amActivities: [886 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Praatcafé" })._id })._id887 ],888 lunch: db.lunchunits.findOne({ lunch: "Stoofvlees met gebakken aardappelen" })._id,889 pmActivities: [890 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id891 ],892 eveningBusses: [893 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,894 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id895 ] },896 { templateName: "Template kopie", weekNumber: 3, dayNumber: 3, 897 daycareMentors: [db.users.findOne({ email: "mentor2@gmail.com" })._id], 898 morningBusses: [899 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id900 ], 901 amActivities: [902 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Kaarsenatelier" })._id })._id903 ],904 lunch: db.lunchunits.findOne({ lunch: "Fishsticks met purree en spinazie" })._id,905 pmActivities: [906 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Markt" })._id })._id907 ],908 eveningBusses: [909 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id910 ] },911 { templateName: "Template kopie", weekNumber: 3, dayNumber: 4, 912 daycareMentors: [db.users.findOne({ email: "mentor4@gmail.com" })._id], 913 morningBusses: [914 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,915 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id916 ], 917 amActivities: [918 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Feest" })._id })._id919 ],920 lunch: db.lunchunits.findOne({ lunch: "Worst met aardappelen en doperwten" })._id,921 pmActivities: [922 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Spik en span" })._id })._id923 ],924 eveningBusses: [925 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,926 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id927 ] },928 { templateName: "Template kopie", weekNumber: 3, dayNumber: 5, 929 daycareMentors: [db.users.findOne({ email: "mentor1@gmail.com" })._id], 930 morningBusses: [931 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,932 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id933 ], 934 amActivities: [935 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id936 ],937 lunch: db.lunchunits.findOne({ lunch: "Kip met rijst en ananas" })._id,938 pmActivities: [939 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id,940 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Feest" })._id })._id941 ],942 eveningBusses: [943 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,944 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id945 ] },946 { templateName: "Template kopie", weekNumber: 4, dayNumber: 1, 947 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 948 morningBusses: [949 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,950 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id951 ], 952 amActivities: [953 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Weekschema" })._id })._id954 ],955 lunch: db.lunchunits.findOne({ lunch: "Boomstammetje met aardappelen en wortels" })._id,956 pmActivities: [957 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id958 ],959 eveningBusses: [960 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,961 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id962 ] },963 { templateName: "Template kopie", weekNumber: 4, dayNumber: 2, 964 daycareMentors: [db.users.findOne({ email: "mentor3@gmail.com" })._id], 965 morningBusses: [966 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,967 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id968 ], 969 amActivities: [970 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Kaarsenatelier" })._id })._id,971 ],972 lunch: db.lunchunits.findOne({ lunch: "Kabeljauw met preipurree" })._id,973 pmActivities: [974 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id975 ],976 eveningBusses: [977 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,978 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id979 ] },980 { templateName: "Template kopie", weekNumber: 4, dayNumber: 3, 981 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 982 morningBusses: [983 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,984 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id985 ], 986 amActivities: [987 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Werkplaats" })._id })._id988 ],989 lunch: db.lunchunits.findOne({ lunch: "Spaghetti bolognese" })._id,990 pmActivities: [991 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Feest" })._id })._id992 ],993 eveningBusses: [994 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,995 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id996 ] },997 { templateName: "Template kopie", weekNumber: 4, dayNumber: 4, 998 daycareMentors: [db.users.findOne({ email: "mentor1@gmail.com" })._id], 999 morningBusses: [1000 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,1001 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1002 ], 1003 amActivities: [1004 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id,1005 ],1006 lunch: db.lunchunits.findOne({ lunch: "Stoofvlees met gebakken aardappelen" })._id,1007 pmActivities: [1008 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Markt" })._id })._id1009 ],1010 eveningBusses: [1011 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,1012 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1013 ] },1014 { templateName: "Template kopie", weekNumber: 4, dayNumber: 5, 1015 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 1016 morningBusses: [1017 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,1018 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1019 ], 1020 amActivities: [1021 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Spik en span" })._id })._id,1022 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Praatcafé" })._id })._id1023 ],1024 lunch: db.lunchunits.findOne({ lunch: "Lasagne" })._id,1025 pmActivities: [1026 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id1027 ],1028 eveningBusses: [1029 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,1030 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1031 ] }1032])1033// Workdays1034db.workdays.insertMany([1035 { date: new Date("2019-10-28"), originalWeekNumber: 1, 1036 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 1037 morningBusses: [1038 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,1039 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1040 ],1041 amActivities: [1042 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Weekschema" })._id })._id,1043 ],1044 lunch: db.lunchunits.findOne({ lunch: "Lasagne" })._id,1045 pmActivities: [1046 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Markt" })._id })._id1047 ],1048 eveningBusses: [1049 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,1050 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1051 ] },1052 { date: new Date("2019-10-29"), originalWeekNumber: 1, 1053 daycareMentors: [1054 db.users.findOne({ email: "mentor4@gmail.com" })._id,1055 db.users.findOne({ email: "mentor5@gmail.com" })._id1056 ], 1057 morningBusses: [1058 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,1059 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1060 ], 1061 amActivities: [1062 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Sfeergroep" })._id })._id,1063 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Praatcafé" })._id })._id1064 ],1065 lunch: db.lunchunits.findOne({ lunch: "Spaghetti bolognese" })._id,1066 pmActivities: [1067 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Spik en span" })._id })._id,1068 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Feest" })._id })._id1069 ],1070 eveningBusses: [1071 db.busunits.findOne({ bus: db.busses.findOne({ name: "Geel" })._id })._id,1072 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1073 ] },1074 { date: new Date("2019-10-30"), originalWeekNumber: 1, 1075 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 1076 morningBusses: [1077 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,1078 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1079 ], 1080 amActivities: [1081 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Werkplaats" })._id })._id,1082 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Bib" })._id })._id1083 ],1084 lunch: db.lunchunits.findOne({ lunch: "Fishsticks met purree en spinazie" })._id,1085 pmActivities: [1086 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id,1087 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Spik en span" })._id })._id1088 ],1089 eveningBusses: [1090 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,1091 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1092 ] },1093 { date: new Date("2019-10-31"), originalWeekNumber: 1, 1094 daycareMentors: [db.users.findOne({ email: "mentor3@gmail.com" })._id], 1095 morningBusses: [1096 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,1097 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1098 ], 1099 amActivities: [1100 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Sfeergroep" })._id })._id1101 ],1102 lunch: db.lunchunits.findOne({ lunch: "Vol-au-vent met frietjes" })._id,1103 pmActivities: [1104 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Werkplaats" })._id })._id1105 ],1106 eveningBusses: [1107 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id,1108 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1109 ] },1110 { date: new Date("2019-11-01"), originalWeekNumber: 1, 1111 holiday: true1112 },1113 { date: new Date("2019-11-02"), originalWeekNumber: 1 },1114 { date: new Date("2019-11-03"), originalWeekNumber: 1 },1115 { date: new Date("2019-11-04"), originalWeekNumber: 2, 1116 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 1117 morningBusses: [1118 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1119 ], 1120 amActivities: [1121 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Weekschema" })._id })._id,1122 ],1123 lunch: db.lunchunits.findOne({ lunch: "Kip met rijst en ananas" })._id,1124 pmActivities: [1125 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Sfeergroep" })._id })._id1126 ],1127 eveningBusses: [1128 db.busunits.findOne({ bus: db.busses.findOne({ name: "Blauw" })._id })._id1129 ] },1130 { date: new Date("2019-11-05"), originalWeekNumber: 2, 1131 daycareMentors: [db.users.findOne({ email: "mentor5@gmail.com" })._id], 1132 morningBusses: [1133 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id1134 ], 1135 amActivities: [1136 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Markt" })._id })._id1137 ],1138 lunch: db.lunchunits.findOne({ lunch: "Boomstammetje met aardappelen en wortels" })._id,1139 pmActivities: [1140 db.activityunits.findOne({ activity: db.activities.findOne({ name: "Beleving" })._id })._id1141 ],1142 eveningBusses: [1143 db.busunits.findOne({ bus: db.busses.findOne({ name: "Beige" })._id })._id1144 ] }1145])1146// DEMO DATA1147db.activities.insertMany([1148 { name: "Clb", icon:""},1149 { name: "Rozenberg", icon:""},1150 { name: "Teamdag", icon:""},1151 { name: "Gezelschapsspelen", icon:""},1152 { name: "Vilten", icon:""}1153 ]1154)1155// LunchUnits1156db.lunchunits.insertMany([1157 { lunch: "Spaghetti bolognese", 1158 mentors: [1159 db.users.findOne({ email: "demoadmin1@gmail.com" })._id,1160 db.users.findOne({ email: "demoadmin2@gmail.com" })._id,1161 db.users.findOne({ email: "demoadmin3@gmail.com" })._id,1162 db.users.findOne({ email: "demoadmin5@gmail.com" })._id,1163 db.users.findOne({ email: "demoadmin6@gmail.com" })._id,1164 db.users.findOne({ email: "demoadmin7@gmail.com" })._id,1165 db.users.findOne({ email: "demoadmin8@gmail.com" })._id,1166 db.users.findOne({ email: "demoadmin9@gmail.com" })._id,1167 db.users.findOne({ email: "demoadmin10@gmail.com" })._id1168 ], 1169 clients: [1170 db.users.findOne({ email: "democlient15@gmail.com" })._id,1171 db.users.findOne({ email: "democlient16@gmail.com" })._id,1172 db.users.findOne({ email: "democlient17@gmail.com" })._id,1173 db.users.findOne({ email: "democlient18@gmail.com" })._id,1174 db.users.findOne({ email: "democlient19@gmail.com" })._id,1175 db.users.findOne({ email: "democlient20@gmail.com" })._id,1176 db.users.findOne({ email: "democlient21@gmail.com" })._id,1177 db.users.findOne({ email: "democlient22@gmail.com" })._id,1178 db.users.findOne({ email: "democlient23@gmail.com" })._id,1179 db.users.findOne({ email: "democlient24@gmail.com" })._id,1180 db.users.findOne({ email: "democlient25@gmail.com" })._id,1181 db.users.findOne({ email: "democlient26@gmail.com" })._id,1182 db.users.findOne({ email: "democlient27@gmail.com" })._id,1183 db.users.findOne({ email: "democlient28@gmail.com" })._id,1184 db.users.findOne({ email: "democlient29@gmail.com" })._id,1185 db.users.findOne({ email: "democlient30@gmail.com" })._id,1186 db.users.findOne({ email: "democlient31@gmail.com" })._id,1187 db.users.findOne({ email: "democlient32@gmail.com" })._id,1188 db.users.findOne({ email: "democlient33@gmail.com" })._id,1189 db.users.findOne({ email: "democlient34@gmail.com" })._id,1190 db.users.findOne({ email: "democlient35@gmail.com" })._id,1191 db.users.findOne({ email: "democlient36@gmail.com" })._id,1192 db.users.findOne({ email: "democlient37@gmail.com" })._id,1193 db.users.findOne({ email: "democlient38@gmail.com" })._id,1194 db.users.findOne({ email: "democlient39@gmail.com" })._id1195 ] },1196 { lunch: "Fishsticks met purree en spinazie",1197 mentors: [1198 db.users.findOne({ email: "demoadmin16@gmail.com" })._id,1199 db.users.findOne({ email: "demoadmin17@gmail.com" })._id,1200 db.users.findOne({ email: "demoadmin8@gmail.com" })._id,1201 db.users.findOne({ email: "demoadmin12@gmail.com" })._id,1202 db.users.findOne({ email: "demoadmin9@gmail.com" })._id,1203 db.users.findOne({ email: "demoadmin14@gmail.com" })._id,1204 db.users.findOne({ email: "demoadmin5@gmail.com" })._id,1205 db.users.findOne({ email: "demoadmin11@gmail.com" })._id1206 ],1207 clients: [1208 db.users.findOne({ email: "democlient28@gmail.com" })._id,1209 db.users.findOne({ email: "democlient3@gmail.com" })._id,1210 db.users.findOne({ email: "democlient16@gmail.com" })._id,1211 db.users.findOne({ email: "democlient29@gmail.com" })._id,1212 db.users.findOne({ email: "democlient30@gmail.com" })._id, 1213 db.users.findOne({ email: "democlient32@gmail.com" })._id,1214 db.users.findOne({ email: "democlient14@gmail.com" })._id,1215 db.users.findOne({ email: "democlient36@gmail.com" })._id,1216 db.users.findOne({ email: "democlient22@gmail.com" })._id,1217 db.users.findOne({ email: "democlient26@gmail.com" })._id,1218 db.users.findOne({ email: "democlient38@gmail.com" })._id,1219 db.users.findOne({ email: "democlient27@gmail.com" })._id,1220 db.users.findOne({ email: "democlient23@gmail.com" })._id,1221 db.users.findOne({ email: "democlient18@gmail.com" })._id,1222 db.users.findOne({ email: "democlient21@gmail.com" })._id,1223 db.users.findOne({ email: "democlient7@gmail.com" })._id,1224 db.users.findOne({ email: "democlient8@gmail.com" })._id,1225 db.users.findOne({ email: "democlient34@gmail.com" })._id,1226 db.users.findOne({ email: "democlient15@gmail.com" })._id,1227 db.users.findOne({ email: "democlient35@gmail.com" })._id,1228 db.users.findOne({ email: "democlient24@gmail.com" })._id,1229 db.users.findOne({ email: "democlient30@gmail.com" })._id,1230 db.users.findOne({ email: "democlient25@gmail.com" })._id1231 ] },1232 { lunch: "Vol-au-vent met frietjes",1233 mentors: [1234 db.users.findOne({ email: "demoadmin8@gmail.com" })._id,1235 db.users.findOne({ email: "demoadmin15@gmail.com" })._id,1236 db.users.findOne({ email: "demoadmin2@gmail.com" })._id,1237 db.users.findOne({ email: "demoadmin5@gmail.com" })._id,1238 db.users.findOne({ email: "demoadmin12@gmail.com" })._id,1239 db.users.findOne({ email: "demoadmin7@gmail.com" })._id,1240 db.users.findOne({ email: "demoadmin1@gmail.com" })._id,1241 db.users.findOne({ email: "demoadmin19@gmail.com" })._id1242 ],1243 clients: [1244 db.users.findOne({ email: "democlient14@gmail.com" })._id,1245 db.users.findOne({ email: "democlient15@gmail.com" })._id,1246 db.users.findOne({ email: "democlient4@gmail.com" })._id,1247 db.users.findOne({ email: "democlient31@gmail.com" })._id,1248 db.users.findOne({ email: "democlient22@gmail.com" })._id,1249 db.users.findOne({ email: "democlient26@gmail.com" })._id,1250 db.users.findOne({ email: "democlient34@gmail.com" })._id,1251 db.users.findOne({ email: "democlient16@gmail.com" })._id,1252 db.users.findOne({ email: "democlient5@gmail.com" })._id,1253 db.users.findOne({ email: "democlient7@gmail.com" })._id,1254 db.users.findOne({ email: "democlient37@gmail.com" })._id,1255 db.users.findOne({ email: "democlient2@gmail.com" })._id,1256 db.users.findOne({ email: "democlient3@gmail.com" })._id,1257 db.users.findOne({ email: "democlient24@gmail.com" })._id,1258 db.users.findOne({ email: "democlient29@gmail.com" })._id,1259 db.users.findOne({ email: "democlient30@gmail.com" })._id,1260 db.users.findOne({ email: "democlient32@gmail.com" })._id,1261 db.users.findOne({ email: "democlient18@gmail.com" })._id,1262 db.users.findOne({ email: "democlient6@gmail.com" })._id,1263 db.users.findOne({ email: "democlient36@gmail.com" })._id,1264 db.users.findOne({ email: "democlient38@gmail.com" })._id,1265 db.users.findOne({ email: "democlient25@gmail.com" })._id,1266 db.users.findOne({ email: "democlient8@gmail.com" })._id,1267 db.users.findOne({ email: "democlient17@gmail.com" })._id1268 ] },1269 { lunch: "Kip met rijst en ananas",1270 mentors: [1271 db.users.findOne({ email: "demoadmin9@gmail.com" })._id,1272 db.users.findOne({ email: "demoadmin5@gmail.com" })._id,1273 db.users.findOne({ email: "demoadmin17@gmail.com" })._id,1274 db.users.findOne({ email: "demoadmin3@gmail.com" })._id,1275 db.users.findOne({ email: "demoadmin21@gmail.com" })._id,1276 db.users.findOne({ email: "demoadmin23@gmail.com" })._id,1277 db.users.findOne({ email: "demoadmin16@gmail.com" })._id,1278 db.users.findOne({ email: "demoadmin14@gmail.com" })._id1279 ],1280 clients: [1281 db.users.findOne({ email: "democlient28@gmail.com" })._id,1282 db.users.findOne({ email: "democlient36@gmail.com" })._id,1283 db.users.findOne({ email: "democlient24@gmail.com" })._id,1284 db.users.findOne({ email: "democlient6@gmail.com" })._id,1285 db.users.findOne({ email: "democlient22@gmail.com" })._id,1286 db.users.findOne({ email: "democlient26@gmail.com" })._id,1287 db.users.findOne({ email: "democlient38@gmail.com" })._id,1288 db.users.findOne({ email: "democlient34@gmail.com" })._id,1289 db.users.findOne({ email: "democlient9@gmail.com" })._id,1290 db.users.findOne({ email: "democlient15@gmail.com" })._id,1291 db.users.findOne({ email: "democlient16@gmail.com" })._id,1292 db.users.findOne({ email: "democlient27@gmail.com" })._id,1293 db.users.findOne({ email: "democlient17@gmail.com" })._id,1294 db.users.findOne({ email: "democlient18@gmail.com" })._id,1295 db.users.findOne({ email: "democlient19@gmail.com" })._id,1296 db.users.findOne({ email: "democlient10@gmail.com" })._id,1297 db.users.findOne({ email: "democlient31@gmail.com" })._id,1298 db.users.findOne({ email: "democlient21@gmail.com" })._id,1299 db.users.findOne({ email: "democlient8@gmail.com" })._id,1300 db.users.findOne({ email: "democlient37@gmail.com" })._id,1301 db.users.findOne({ email: "democlient32@gmail.com" })._id,1302 db.users.findOne({ email: "democlient1@gmail.com" })._id,1303 db.users.findOne({ email: "democlient14@gmail.com" })._id,1304 db.users.findOne({ email: "democlient40@gmail.com" })._id,1305 db.users.findOne({ email: "democlient25@gmail.com" })._id,1306 db.users.findOne({ email: "democlient7@gmail.com" })._id,1307 db.users.findOne({ email: "democlient12@gmail.com" })._id,1308 db.users.findOne({ email: "democlient3@gmail.com" })._id,1309 db.users.findOne({ email: "democlient11@gmail.com" })._id,1310 db.users.findOne({ email: "democlient29@gmail.com" })._id,1311 db.users.findOne({ email: "democlient30@gmail.com" })._id,1312 db.users.findOne({ email: "democlient5@gmail.com" })._id1313 ] }1314 ])1315// ActivityUnits1316db.activityunits.insertMany([1317 { activity: db.activities.findOne({ name: "Koken" })._id, 1318 mentors: [1319 db.users.findOne({ email: "demoadmin5@gmail.com" })._id1320 ], 1321 clients: [1322 db.users.findOne({ email: "democlient14@gmail.com" })._id,1323 db.users.findOne({ email: "democlient15@gmail.com" })._id,1324 db.users.findOne({ email: "democlient16@gmail.com" })._id,1325 db.users.findOne({ email: "democlient17@gmail.com" })._id,1326 db.users.findOne({ email: "democlient18@gmail.com" })._id,1327 db.users.findOne({ email: "democlient19@gmail.com" })._id,1328 db.users.findOne({ email: "democlient20@gmail.com" })._id,1329 db.users.findOne({ email: "democlient21@gmail.com" })._id1330 ] },1331 { activity: db.activities.findOne({ name: "Digitaal atelier" })._id, 1332 mentors: [1333 db.users.findOne({ email: "demoadmin6@gmail.com" })._id,1334 db.users.findOne({ email: "demoadmin2@gmail.com" })._id1335 ], 1336 clients: [1337 db.users.findOne({ email: "democlient4@gmail.com" })._id,1338 db.users.findOne({ email: "democlient23@gmail.com" })._id,1339 db.users.findOne({ email: "democlient24@gmail.com" })._id,1340 db.users.findOne({ email: "democlient25@gmail.com" })._id,1341 db.users.findOne({ email: "democlient26@gmail.com" })._id,1342 db.users.findOne({ email: "democlient27@gmail.com" })._id1343 ] },1344 { activity: db.activities.findOne({ name: "Crea" })._id, 1345 mentors: [1346 db.users.findOne({ email: "demoadmin7@gmail.com" })._id,1347 db.users.findOne({ email: "demoadmin1@gmail.com" })._id1348 ], 1349 clients: [1350 db.users.findOne({ email: "democlient28@gmail.com" })._id,1351 db.users.findOne({ email: "democlient29@gmail.com" })._id,1352 db.users.findOne({ email: "democlient30@gmail.com" })._id,1353 db.users.findOne({ email: "democlient31@gmail.com" })._id,1354 db.users.findOne({ email: "democlient8@gmail.com" })._id,1355 db.users.findOne({ email: "democlient32@gmail.com" })._id,1356 db.users.findOne({ email: "democlient33@gmail.com" })._id1357 ] },1358 { activity: db.activities.findOne({ name: "Winkelen" })._id, 1359 mentors: [1360 db.users.findOne({ email: "demoadmin8@gmail.com" })._id,1361 db.users.findOne({ email: "demoadmin3@gmail.com" })._id1362 ], 1363 clients: [1364 db.users.findOne({ email: "democlient34@gmail.com" })._id,1365 db.users.findOne({ email: "democlient35@gmail.com" })._id,1366 db.users.findOne({ email: "democlient36@gmail.com" })._id,1367 db.users.findOne({ email: "democlient37@gmail.com" })._id,1368 db.users.findOne({ email: "democlient38@gmail.com" })._id,1369 db.users.findOne({ email: "democlient39@gmail.com" })._id1370 ] },1371 { activity: db.activities.findOne({ name: "Spik en span" })._id, 1372 mentors: [1373 db.users.findOne({ email: "demoadmin11@gmail.com" })._id,1374 db.users.findOne({ email: "demoadmin1@gmail.com" })._id1375 ], 1376 clients: [1377 db.users.findOne({ email: "democlient34@gmail.com" })._id,1378 db.users.findOne({ email: "democlient24@gmail.com" })._id,1379 db.users.findOne({ email: "democlient27@gmail.com" })._id1380 ] },1381 { activity: db.activities.findOne({ name: "Beleving" })._id, 1382 mentors: [1383 db.users.findOne({ email: "demoadmin10@gmail.com" })._id,1384 db.users.findOne({ email: "demoadmin3@gmail.com" })._id1385 ], 1386 clients: [1387 db.users.findOne({ email: "democlient14@gmail.com" })._id,1388 db.users.findOne({ email: "democlient36@gmail.com" })._id,1389 db.users.findOne({ email: "democlient30@gmail.com" })._id,1390 db.users.findOne({ email: "democlient33@gmail.com" })._id1391 ] },1392 { activity: db.activities.findOne({ name: "Sporten" })._id, 1393 mentors: [1394 db.users.findOne({ email: "demoadmin7@gmail.com" })._id,1395 db.users.findOne({ email: "demoadmin6@gmail.com" })._id1396 ], 1397 clients: [1398 db.users.findOne({ email: "democlient28@gmail.com" })._id,1399 db.users.findOne({ email: "democlient16@gmail.com" })._id,1400 db.users.findOne({ email: "democlient23@gmail.com" })._id,1401 db.users.findOne({ email: "democlient17@gmail.com" })._id,1402 db.users.findOne({ email: "democlient29@gmail.com" })._id,1403 db.users.findOne({ email: "democlient18@gmail.com" })._id,1404 db.users.findOne({ email: "democlient19@gmail.com" })._id,1405 db.users.findOne({ email: "democlient31@gmail.com" })._id,1406 db.users.findOne({ email: "democlient21@gmail.com" })._id,1407 db.users.findOne({ email: "democlient25@gmail.com" })._id,1408 db.users.findOne({ email: "democlient37@gmail.com" })._id,1409 db.users.findOne({ email: "democlient38@gmail.com" })._id,1410 db.users.findOne({ email: "democlient20@gmail.com" })._id1411 ] },1412 { activity: db.activities.findOne({ name: "Kaarsenatelier" })._id, 1413 mentors: [1414 db.users.findOne({ email: "demoadmin9@gmail.com" })._id1415 ], 1416 clients: [1417 db.users.findOne({ email: "democlient15@gmail.com" })._id,1418 db.users.findOne({ email: "democlient35@gmail.com" })._id,1419 db.users.findOne({ email: "democlient22@gmail.com" })._id,1420 db.users.findOne({ email: "democlient26@gmail.com" })._id,1421 db.users.findOne({ email: "democlient32@gmail.com" })._id,1422 db.users.findOne({ email: "democlient39@gmail.com" })._id1423 ] },1424 //DAY 21425 { activity: db.activities.findOne({ name: "Koken" })._id, 1426 mentors: [1427 db.users.findOne({ email: "demoadmin16@gmail.com" })._id1428 ], 1429 clients: [1430 db.users.findOne({ email: "democlient28@gmail.com" })._id,1431 db.users.findOne({ email: "democlient3@gmail.com" })._id,1432 db.users.findOne({ email: "democlient16@gmail.com" })._id,1433 db.users.findOne({ email: "democlient29@gmail.com" })._id,1434 db.users.findOne({ email: "democlient20@gmail.com" })._id,1435 db.users.findOne({ email: "democlient32@gmail.com" })._id1436 ] },1437 { activity: db.activities.findOne({ name: "Clb" })._id, 1438 mentors: [1439 db.users.findOne({ email: "demoadmin17@gmail.com" })._id1440 ], 1441 clients: [1442 db.users.findOne({ email: "democlient14@gmail.com" })._id,1443 db.users.findOne({ email: "democlient36@gmail.com" })._id,1444 db.users.findOne({ email: "democlient22@gmail.com" })._id,1445 db.users.findOne({ email: "democlient26@gmail.com" })._id,1446 db.users.findOne({ email: "democlient38@gmail.com" })._id1447 ] },1448 { activity: db.activities.findOne({ name: "Provenciaal domein" })._id, 1449 mentors: [1450 db.users.findOne({ email: "demoadmin8@gmail.com" })._id,1451 db.users.findOne({ email: "demoadmin12@gmail.com" })._id1452 ], 1453 clients: [1454 db.users.findOne({ email: "democlient27@gmail.com" })._id,1455 db.users.findOne({ email: "democlient23@gmail.com" })._id,1456 db.users.findOne({ email: "democlient18@gmail.com" })._id,1457 db.users.findOne({ email: "democlient21@gmail.com" })._id,1458 db.users.findOne({ email: "democlient7@gmail.com" })._id,1459 db.users.findOne({ email: "democlient8@gmail.com" })._id1460 ] },1461 { activity: db.activities.findOne({ name: "Kaarsenatelier" })._id, 1462 mentors: [1463 db.users.findOne({ email: "demoadmin9@gmail.com" })._id,1464 db.users.findOne({ email: "demoadmin14@gmail.com" })._id1465 ], 1466 clients: [1467 db.users.findOne({ email: "democlient34@gmail.com" })._id,1468 db.users.findOne({ email: "democlient15@gmail.com" })._id,1469 db.users.findOne({ email: "democlient35@gmail.com" })._id,1470 db.users.findOne({ email: "democlient24@gmail.com" })._id,1471 db.users.findOne({ email: "democlient30@gmail.com" })._id,1472 db.users.findOne({ email: "democlient25@gmail.com" })._id1473 ] },1474 { activity: db.activities.findOne({ name: "Keuken afwas" })._id, 1475 mentors: [1476 db.users.findOne({ email: "demoadmin11@gmail.com" })._id1477 ], 1478 clients: [1479 db.users.findOne({ email: "democlient28@gmail.com" })._id,1480 db.users.findOne({ email: "democlient21@gmail.com" })._id1481 ] },1482 { activity: db.activities.findOne({ name: "Wandelen" })._id, 1483 mentors: [1484 db.users.findOne({ email: "demoadmin17@gmail.com" })._id,1485 db.users.findOne({ email: "demoadmin9@gmail.com" })._id,1486 db.users.findOne({ email: "demoadmin13@gmail.com" })._id1487 ], 1488 clients: [1489 db.users.findOne({ email: "democlient14@gmail.com" })._id,1490 db.users.findOne({ email: "democlient34@gmail.com" })._id,1491 db.users.findOne({ email: "democlient3@gmail.com" })._id,1492 db.users.findOne({ email: "democlient15@gmail.com" })._id,1493 db.users.findOne({ email: "democlient35@gmail.com" })._id,1494 db.users.findOne({ email: "democlient16@gmail.com" })._id,1495 db.users.findOne({ email: "democlient27@gmail.com" })._id,1496 db.users.findOne({ email: "democlient29@gmail.com" })._id,1497 db.users.findOne({ email: "democlient30@gmail.com" })._id,1498 db.users.findOne({ email: "democlient7@gmail.com" })._id,1499 db.users.findOne({ email: "democlient20@gmail.com" })._id1500 ] },1501 { activity: db.activities.findOne({ name: "Crea" })._id, 1502 mentors: [1503 db.users.findOne({ email: "demoadmin17@gmail.com" })._id1504 ], 1505 clients: [1506 db.users.findOne({ email: "democlient24@gmail.com" })._id,1507 db.users.findOne({ email: "democlient18@gmail.com" })._id,1508 db.users.findOne({ email: "democlient8@gmail.com" })._id,1509 db.users.findOne({ email: "democlient25@gmail.com" })._id,1510 db.users.findOne({ email: "democlient38@gmail.com" })._id1511 ] },1512 { activity: db.activities.findOne({ name: "Rozenberg" })._id, 1513 mentors: [1514 db.users.findOne({ email: "demoadmin5@gmail.com" })._id,1515 db.users.findOne({ email: "demoadmin14@gmail.com" })._id 1516 ], 1517 clients: [1518 db.users.findOne({ email: "democlient36@gmail.com" })._id,1519 db.users.findOne({ email: "democlient23@gmail.com" })._id,1520 db.users.findOne({ email: "democlient22@gmail.com" })._id,1521 db.users.findOne({ email: "democlient37@gmail.com" })._id,1522 db.users.findOne({ email: "democlient26@gmail.com" })._id,1523 db.users.findOne({ email: "democlient32@gmail.com" })._id1524 ] },1525 //DAY31526 { activity: db.activities.findOne({ name: "Teamdag" })._id, 1527 mentors: [1528 db.users.findOne({ email: "demoadmin1@gmail.com" })._id,1529 db.users.findOne({ email: "demoadmin2@gmail.com" })._id,1530 db.users.findOne({ email: "demoadmin3@gmail.com" })._id,1531 db.users.findOne({ email: "demoadmin4@gmail.com" })._id,1532 db.users.findOne({ email: "demoadmin5@gmail.com" })._id,1533 db.users.findOne({ email: "demoadmin6@gmail.com" })._id,1534 db.users.findOne({ email: "demoadmin7@gmail.com" })._id,1535 db.users.findOne({ email: "demoadmin8@gmail.com" })._id,1536 db.users.findOne({ email: "demoadmin9@gmail.com" })._id,1537 db.users.findOne({ email: "demoadmin10@gmail.com" })._id,1538 db.users.findOne({ email: "demoadmin11@gmail.com" })._id,1539 db.users.findOne({ email: "demoadmin12@gmail.com" })._id,1540 db.users.findOne({ email: "demoadmin13@gmail.com" })._id,1541 db.users.findOne({ email: "demoadmin14@gmail.com" })._id,1542 db.users.findOne({ email: "demoadmin15@gmail.com" })._id,1543 db.users.findOne({ email: "demoadmin16@gmail.com" })._id,1544 db.users.findOne({ email: "demoadmin17@gmail.com" })._id,1545 db.users.findOne({ email: "demoadmin18@gmail.com" })._id,1546 db.users.findOne({ email: "demoadmin19@gmail.com" })._id1547 ], 1548 clients: [1549 db.users.findOne({ email: "democlient1@gmail.com" })._id,1550 db.users.findOne({ email: "democlient3@gmail.com" })._id,1551 db.users.findOne({ email: "democlient4@gmail.com" })._id,1552 db.users.findOne({ email: "democlient5@gmail.com" })._id,1553 db.users.findOne({ email: "democlient6@gmail.com" })._id,1554 db.users.findOne({ email: "democlient7@gmail.com" })._id,1555 db.users.findOne({ email: "democlient8@gmail.com" })._id,1556 db.users.findOne({ email: "democlient9@gmail.com" })._id,1557 db.users.findOne({ email: "democlient10@gmail.com" })._id,1558 db.users.findOne({ email: "democlient11@gmail.com" })._id,1559 db.users.findOne({ email: "democlient12@gmail.com" })._id,1560 db.users.findOne({ email: "democlient13@gmail.com" })._id,1561 db.users.findOne({ email: "democlient14@gmail.com" })._id,1562 db.users.findOne({ email: "democlient15@gmail.com" })._id,1563 db.users.findOne({ email: "democlient16@gmail.com" })._id,1564 db.users.findOne({ email: "democlient17@gmail.com" })._id,1565 db.users.findOne({ email: "democlient18@gmail.com" })._id,1566 db.users.findOne({ email: "democlient19@gmail.com" })._id,1567 db.users.findOne({ email: "democlient22@gmail.com" })._id,1568 db.users.findOne({ email: "democlient23@gmail.com" })._id,1569 db.users.findOne({ email: "democlient24@gmail.com" })._id,1570 db.users.findOne({ email: "democlient25@gmail.com" })._id,1571 db.users.findOne({ email: "democlient26@gmail.com" })._id,1572 db.users.findOne({ email: "democlient28@gmail.com" })._id,1573 db.users.findOne({ email: "democlient29@gmail.com" })._id,1574 db.users.findOne({ email: "democlient30@gmail.com" })._id,1575 db.users.findOne({ email: "democlient31@gmail.com" })._id,1576 db.users.findOne({ email: "democlient32@gmail.com" })._id,1577 db.users.findOne({ email: "democlient34@gmail.com" })._id,1578 db.users.findOne({ email: "democlient36@gmail.com" })._id,1579 db.users.findOne({ email: "democlient37@gmail.com" })._id,1580 db.users.findOne({ email: "democlient38@gmail.com" })._id,1581 db.users.findOne({ email: "democlient39@gmail.com" })._id1582 ] },1583 //DAY 41584 { activity: db.activities.findOne({ name: "Koken" })._id, 1585 mentors: [1586 db.users.findOne({ email: "demoadmin8@gmail.com" })._id1587 ], 1588 clients: [1589 db.users.findOne({ email: "democlient14@gmail.com" })._id,1590 db.users.findOne({ email: "democlient15@gmail.com" })._id,1591 db.users.findOne({ email: "democlient4@gmail.com" })._id,1592 db.users.findOne({ email: "democlient31@gmail.com" })._id,1593 db.users.findOne({ email: "democlient22@gmail.com" })._id,1594 db.users.findOne({ email: "democlient26@gmail.com" })._id1595 ] },1596 { activity: db.activities.findOne({ name: "Bakken" })._id, 1597 mentors: [1598 db.users.findOne({ email: "demoadmin15@gmail.com" })._id,1599 db.users.findOne({ email: "demoadmin3@gmail.com" })._id1600 1601 ], 1602 clients: [1603 db.users.findOne({ email: "democlient34@gmail.com" })._id,1604 db.users.findOne({ email: "democlient16@gmail.com" })._id,1605 db.users.findOne({ email: "democlient5@gmail.com" })._id,1606 db.users.findOne({ email: "democlient7@gmail.com" })._id,1607 db.users.findOne({ email: "democlient37@gmail.com" })._id1608 ] },1609 { activity: db.activities.findOne({ name: "Markt" })._id, 1610 mentors: [1611 db.users.findOne({ email: "demoadmin5@gmail.com" })._id,1612 db.users.findOne({ email: "demoadmin12@gmail.com" })._id1613 1614 ], 1615 clients: [1616 db.users.findOne({ email: "democlient2@gmail.com" })._id,1617 db.users.findOne({ email: "democlient3@gmail.com" })._id,1618 db.users.findOne({ email: "democlient24@gmail.com" })._id,1619 db.users.findOne({ email: "democlient29@gmail.com" })._id,1620 db.users.findOne({ email: "democlient30@gmail.com" })._id,1621 db.users.findOne({ email: "democlient32@gmail.com" })._id1622 ] },1623 { activity: db.activities.findOne({ name: "Snoezelen" })._id, 1624 mentors: [1625 db.users.findOne({ email: "demoadmin7@gmail.com" })._id,1626 db.users.findOne({ email: "demoadmin1@gmail.com" })._id1627 1628 ], 1629 clients: [1630 db.users.findOne({ email: "democlient18@gmail.com" })._id,1631 db.users.findOne({ email: "democlient6@gmail.com" })._id,1632 db.users.findOne({ email: "democlient36@gmail.com" })._id,1633 db.users.findOne({ email: "democlient38@gmail.com" })._id,1634 db.users.findOne({ email: "democlient25@gmail.com" })._id1635 ] },1636 { activity: db.activities.findOne({ name: "Vilten" })._id, 1637 mentors: [1638 db.users.findOne({ email: "demoadmin19@gmail.com" })._id1639 1640 ], 1641 clients: [1642 db.users.findOne({ email: "democlient8@gmail.com" })._id,1643 db.users.findOne({ email: "democlient17@gmail.com" })._id1644 ] },1645 { activity: db.activities.findOne({ name: "Keuken afwas" })._id, 1646 mentors: [1647 db.users.findOne({ email: "demoadmin11@gmail.com" })._id,1648 db.users.findOne({ email: "demoadmin1@gmail.com" })._id1649 ], 1650 clients: [1651 db.users.findOne({ email: "democlient15@gmail.com" })._id,1652 db.users.findOne({ email: "democlient18@gmail.com" })._id,1653 db.users.findOne({ email: "democlient34@gmail.com" })._id,1654 db.users.findOne({ email: "democlient22@gmail.com" })._id1655 ] },1656 { activity: db.activities.findOne({ name: "Digitaal atelier" })._id, 1657 mentors: [1658 db.users.findOne({ email: "demoadmin5@gmail.com" })._id,1659 db.users.findOne({ email: "demoadmin3@gmail.com" })._id1660 ], 1661 clients: [1662 db.users.findOne({ email: "democlient3@gmail.com" })._id,1663 db.users.findOne({ email: "democlient24@gmail.com" })._id,1664 db.users.findOne({ email: "democlient29@gmail.com" })._id,1665 db.users.findOne({ email: "democlient7@gmail.com" })._id,1666 db.users.findOne({ email: "democlient16@gmail.com" })._id,1667 db.users.findOne({ email: "democlient39@gmail.com" })._id1668 ] },1669 { activity: db.activities.findOne({ name: "Vorming" })._id, 1670 mentors: [1671 db.users.findOne({ email: "demoadmin7@gmail.com" })._id1672 ], 1673 clients: [1674 db.users.findOne({ email: "democlient14@gmail.com" })._id,1675 db.users.findOne({ email: "democlient5@gmail.com" })._id,1676 db.users.findOne({ email: "democlient6@gmail.com" })._id,1677 db.users.findOne({ email: "democlient26@gmail.com" })._id,1678 db.users.findOne({ email: "democlient32@gmail.com" })._id,1679 db.users.findOne({ email: "democlient36@gmail.com" })._id1680 ] },1681 { activity: db.activities.findOne({ name: "Gezelschapsspelen" })._id, 1682 mentors: [1683 db.users.findOne({ email: "demoadmin8@gmail.com" })._id,1684 db.users.findOne({ email: "demoadmin13@gmail.com" })._id,1685 db.users.findOne({ email: "demoadmin19@gmail.com" })._id1686 ], 1687 clients: [1688 db.users.findOne({ email: "democlient28@gmail.com" })._id,1689 db.users.findOne({ email: "democlient36@gmail.com" })._id,1690 db.users.findOne({ email: "democlient24@gmail.com" })._id,1691 db.users.findOne({ email: "democlient6@gmail.com" })._id,1692 db.users.findOne({ email: "democlient22@gmail.com" })._id,1693 db.users.findOne({ email: "democlient26@gmail.com" })._id,1694 db.users.findOne({ email: "democlient38@gmail.com" })._id1695 ] },1696 //DAY 51697 { activity: db.activities.findOne({ name: "Koken" })._id, 1698 mentors: [1699 db.users.findOne({ email: "demoadmin9@gmail.com" })._id1700 ], 1701 clients: [1702 db.users.findOne({ email: "democlient28@gmail.com" })._id,1703 db.users.findOne({ email: "democlient36@gmail.com" })._id,1704 db.users.findOne({ email: "democlient24@gmail.com" })._id,1705 db.users.findOne({ email: "democlient6@gmail.com" })._id,1706 db.users.findOne({ email: "democlient22@gmail.com" })._id,1707 db.users.findOne({ email: "democlient26@gmail.com" })._id,1708 db.users.findOne({ email: "democlient38@gmail.com" })._id1709 ] },1710 { activity: db.activities.findOne({ name: "Zwemmen" })._id, 1711 mentors: [1712 db.users.findOne({ email: "demoadmin5@gmail.com" })._id,1713 db.users.findOne({ email: "demoadmin17@gmail.com" })._id,1714 db.users.findOne({ email: "demoadmin3@gmail.com" })._id1715 ], 1716 clients: [1717 db.users.findOne({ email: "democlient34@gmail.com" })._id,1718 db.users.findOne({ email: "democlient9@gmail.com" })._id,1719 db.users.findOne({ email: "democlient15@gmail.com" })._id,1720 db.users.findOne({ email: "democlient16@gmail.com" })._id,1721 db.users.findOne({ email: "democlient27@gmail.com" })._id,1722 db.users.findOne({ email: "democlient17@gmail.com" })._id,1723 db.users.findOne({ email: "democlient18@gmail.com" })._id,1724 db.users.findOne({ email: "democlient19@gmail.com" })._id,1725 db.users.findOne({ email: "democlient10@gmail.com" })._id,1726 db.users.findOne({ email: "democlient31@gmail.com" })._id,1727 db.users.findOne({ email: "democlient21@gmail.com" })._id,1728 db.users.findOne({ email: "democlient8@gmail.com" })._id,1729 db.users.findOne({ email: "democlient37@gmail.com" })._id,1730 db.users.findOne({ email: "democlient32@gmail.com" })._id1731 ] },1732 { activity: db.activities.findOne({ name: "Bakken" })._id, 1733 mentors: [1734 db.users.findOne({ email: "demoadmin21@gmail.com" })._id,1735 db.users.findOne({ email: "demoadmin23@gmail.com" })._id1736 ], 1737 clients: [1738 db.users.findOne({ email: "democlient1@gmail.com" })._id,1739 db.users.findOne({ email: "democlient14@gmail.com" })._id,1740 db.users.findOne({ email: "democlient40@gmail.com" })._id,1741 db.users.findOne({ email: "democlient25@gmail.com" })._id,1742 db.users.findOne({ email: "democlient7@gmail.com" })._id1743 ] },1744 { activity: db.activities.findOne({ name: "Crea" })._id, 1745 mentors: [1746 db.users.findOne({ email: "demoadmin16@gmail.com" })._id,1747 db.users.findOne({ email: "demoadmin14@gmail.com" })._id1748 ], 1749 clients: [1750 db.users.findOne({ email: "democlient12@gmail.com" })._id,1751 db.users.findOne({ email: "democlient3@gmail.com" })._id,1752 db.users.findOne({ email: "democlient11@gmail.com" })._id,1753 db.users.findOne({ email: "democlient29@gmail.com" })._id,1754 db.users.findOne({ email: "democlient30@gmail.com" })._id,1755 db.users.findOne({ email: "democlient5@gmail.com" })._id1756 ] },1757 { activity: db.activities.findOne({ name: "Keuken afwas" })._id, 1758 mentors: [1759 db.users.findOne({ email: "demoadmin11@gmail.com" })._id1760 ], 1761 clients: [1762 db.users.findOne({ email: "democlient11@gmail.com" })._id,1763 db.users.findOne({ email: "democlient27@gmail.com" })._id,1764 db.users.findOne({ email: "democlient29@gmail.com" })._id1765 ] },1766 { activity: db.activities.findOne({ name: "Kringgesprek" })._id, 1767 mentors: [1768 db.users.findOne({ email: "demoadmin9@gmail.com" })._id,1769 db.users.findOne({ email: "demoadmin14@gmail.com" })._id1770 ], 1771 clients: [1772 db.users.findOne({ email: "democlient28@gmail.com" })._id,1773 db.users.findOne({ email: "democlient27@gmail.com" })._id,1774 db.users.findOne({ email: "democlient36@gmail.com" })._id,1775 db.users.findOne({ email: "democlient24@gmail.com" })._id,1776 db.users.findOne({ email: "democlient29@gmail.com" })._id,1777 db.users.findOne({ email: "democlient30@gmail.com" })._id,1778 db.users.findOne({ email: "democlient21@gmail.com" })._id,1779 db.users.findOne({ email: "democlient22@gmail.com" })._id,1780 db.users.findOne({ email: "democlient37@gmail.com" })._id,1781 db.users.findOne({ email: "democlient32@gmail.com" })._id1782 ] },1783 { activity: db.activities.findOne({ name: "Kringgesprek" })._id, 1784 mentors: [1785 db.users.findOne({ email: "demoadmin5@gmail.com" })._id,1786 db.users.findOne({ email: "demoadmin16@gmail.com" })._id1787 ], 1788 clients: [1789 db.users.findOne({ email: "democlient1@gmail.com" })._id,1790 db.users.findOne({ email: "democlient14@gmail.com" })._id,1791 db.users.findOne({ email: "democlient15@gmail.com" })._id,1792 db.users.findOne({ email: "democlient17@gmail.com" })._id,1793 db.users.findOne({ email: "democlient18@gmail.com" })._id,1794 db.users.findOne({ email: "democlient10@gmail.com" })._id,1795 db.users.findOne({ email: "democlient31@gmail.com" })._id,1796 db.users.findOne({ email: "democlient25@gmail.com" })._id,1797 db.users.findOne({ email: "democlient7@gmail.com" })._id,1798 db.users.findOne({ email: "democlient26@gmail.com" })._id1799 ] },1800 { activity: db.activities.findOne({ name: "Kringgesprek" })._id, 1801 mentors: [1802 db.users.findOne({ email: "demoadmin17@gmail.com" })._id,1803 db.users.findOne({ email: "demoadmin21@gmail.com" })._id,1804 db.users.findOne({ email: "demoadmin3@gmail.com" })._id1805 ], 1806 clients: [1807 db.users.findOne({ email: "democlient34@gmail.com" })._id,1808 db.users.findOne({ email: "democlient12@gmail.com" })._id,1809 db.users.findOne({ email: "democlient3@gmail.com" })._id,1810 db.users.findOne({ email: "democlient9@gmail.com" })._id,1811 db.users.findOne({ email: "democlient16@gmail.com" })._id,1812 db.users.findOne({ email: "democlient11@gmail.com" })._id,1813 db.users.findOne({ email: "democlient5@gmail.com" })._id,1814 db.users.findOne({ email: "democlient19@gmail.com" })._id,1815 db.users.findOne({ email: "democlient6@gmail.com" })._id,1816 db.users.findOne({ email: "democlient38@gmail.com" })._id1817 ] }1818])1819// AbsentDates1820db.users.updateMany( {}, { $set: { absentDates: []} } )1821db.users.updateMany(1822 { email: {$in : [1823 "democlient2@gmail.com", "democlient3@gmail.com", "democlient5@gmail.com",1824 "democlient6@gmail.com", "democlient7@gmail.com", "democlient9@gmail.com",1825 "democlient10@gmail.com", "democlient11@gmail.com", "democlient12@gmail.com",1826 "democlient13@gmail.com", "demoadmin4@gmail.com"]}},1827 { $push: { absentDates: new Date("2019-11-12") } }1828)1829db.users.updateMany(1830 { email: {$in : [1831 "democlient2@gmail.com", "democlient4@gmail.com", "democlient11@gmail.com",1832 "democlient17@gmail.com", "democlient39@gmail.com", "democlient5@gmail.com",1833 "democlient31@gmail.com", "democlient6@gmail.com", "democlient33@gmail.com",1834 "democlient9@gmail.com", "democlient1@gmail.com", "democlient10@gmail.com",1835 "democlient12@gmail.com", "democlient19@gmail.com", "democlient13@gmail.com",1836 "demoadmin15@gmail.com"]}},1837 { $push: { absentDates: new Date("2019-11-13") } }1838)1839db.users.updateMany(1840 { email: {$in : [1841 "democlient2@gmail.com", "democlient35@gmail.com", "democlient27@gmail.com",1842 "democlient20@gmail.com", "democlient21@gmail.com", "democlient33@gmail.com"]}},1843 { $push: { absentDates: new Date("2019-11-14") } }1844)1845db.users.updateMany(1846 { email: {$in : [1847 "democlient35@gmail.com", "democlient27@gmail.com", "democlient39@gmail.com",1848 "democlient20@gmail.com", "democlient21@gmail.com", "democlient33@gmail.com",1849 "democlient9@gmail.com", "democlient1@gmail.com", "democlient10@gmail.com",1850 "democlient28@gmail.com", "democlient23@gmail.com", "democlient11@gmail.com",1851 "democlient12@gmail.com", "democlient19@gmail.com", "democlient13@gmail.com",1852 "demoadmin4@gmail.com", "demoadmin21@gmail.com", "demoadmin22@gmail.com"]}},1853 { $push: { absentDates: new Date("2019-11-15") } }1854)1855db.users.updateMany(1856 { email: {$in : [1857 "democlient35@gmail.com", "democlient20@gmail.com", "democlient33@gmail.com",1858 "democlient23@gmail.com", "democlient4@gmail.com", "democlient39@gmail.com",1859 "democlient2@gmail.com", "democlient13@gmail.com", "demoadmin4@gmail.com",1860 "demoadmin6@gmail.com"]}},1861 { $push: { absentDates: new Date("2019-11-18") } }1862)1863// Workdays1864db.workdays.insertMany([1865 { date: new Date("2019-11-12"), originalWeekNumber: 3, 1866 amActivities: [1867 db.activityunits.findOne({ activity: db.activities.findOne({1868 name: "Koken"})._id,1869 clients: [1870 db.users.findOne({ email: "democlient14@gmail.com" })._id,1871 db.users.findOne({ email: "democlient15@gmail.com" })._id,1872 db.users.findOne({ email: "democlient16@gmail.com" })._id,1873 db.users.findOne({ email: "democlient17@gmail.com" })._id,1874 db.users.findOne({ email: "democlient18@gmail.com" })._id,1875 db.users.findOne({ email: "democlient19@gmail.com" })._id,1876 db.users.findOne({ email: "democlient20@gmail.com" })._id,1877 db.users.findOne({ email: "democlient21@gmail.com" })._id1878 ]1879 })._id,1880 db.activityunits.findOne({ activity: db.activities.findOne({1881 name: "Digitaal atelier"})._id,1882 clients: [1883 db.users.findOne({ email: "democlient4@gmail.com" })._id,1884 db.users.findOne({ email: "democlient23@gmail.com" })._id,1885 db.users.findOne({ email: "democlient24@gmail.com" })._id,1886 db.users.findOne({ email: "democlient25@gmail.com" })._id,1887 db.users.findOne({ email: "democlient26@gmail.com" })._id,1888 db.users.findOne({ email: "democlient27@gmail.com" })._id1889 ]1890 })._id,1891 db.activityunits.findOne({ activity: db.activities.findOne({ 1892 name: "Crea"})._id,1893 clients: [1894 db.users.findOne({ email: "democlient28@gmail.com" })._id,1895 db.users.findOne({ email: "democlient29@gmail.com" })._id,1896 db.users.findOne({ email: "democlient30@gmail.com" })._id,1897 db.users.findOne({ email: "democlient31@gmail.com" })._id,1898 db.users.findOne({ email: "democlient8@gmail.com" })._id,1899 db.users.findOne({ email: "democlient32@gmail.com" })._id,1900 db.users.findOne({ email: "democlient33@gmail.com" })._id1901 ] 1902 })._id,1903 db.activityunits.findOne({ activity: db.activities.findOne({ 1904 name: "Winkelen"})._id,1905 clients: [1906 db.users.findOne({ email: "democlient34@gmail.com" })._id,1907 db.users.findOne({ email: "democlient35@gmail.com" })._id,1908 db.users.findOne({ email: "democlient36@gmail.com" })._id,1909 db.users.findOne({ email: "democlient37@gmail.com" })._id,1910 db.users.findOne({ email: "democlient38@gmail.com" })._id,1911 db.users.findOne({ email: "democlient39@gmail.com" })._id1912 ]1913 })._id,1914 ],1915 lunch: db.lunchunits.findOne({ 1916 lunch: "Spaghetti bolognese", 1917 clients: [1918 db.users.findOne({ email: "democlient15@gmail.com" })._id,1919 db.users.findOne({ email: "democlient16@gmail.com" })._id,1920 db.users.findOne({ email: "democlient17@gmail.com" })._id,1921 db.users.findOne({ email: "democlient18@gmail.com" })._id,1922 db.users.findOne({ email: "democlient19@gmail.com" })._id,1923 db.users.findOne({ email: "democlient20@gmail.com" })._id,1924 db.users.findOne({ email: "democlient21@gmail.com" })._id,1925 db.users.findOne({ email: "democlient22@gmail.com" })._id,1926 db.users.findOne({ email: "democlient23@gmail.com" })._id,1927 db.users.findOne({ email: "democlient24@gmail.com" })._id,1928 db.users.findOne({ email: "democlient25@gmail.com" })._id,1929 db.users.findOne({ email: "democlient26@gmail.com" })._id,1930 db.users.findOne({ email: "democlient27@gmail.com" })._id,1931 db.users.findOne({ email: "democlient28@gmail.com" })._id,1932 db.users.findOne({ email: "democlient29@gmail.com" })._id,1933 db.users.findOne({ email: "democlient30@gmail.com" })._id,1934 db.users.findOne({ email: "democlient31@gmail.com" })._id,1935 db.users.findOne({ email: "democlient32@gmail.com" })._id,1936 db.users.findOne({ email: "democlient33@gmail.com" })._id,1937 db.users.findOne({ email: "democlient34@gmail.com" })._id,1938 db.users.findOne({ email: "democlient35@gmail.com" })._id,1939 db.users.findOne({ email: "democlient36@gmail.com" })._id,1940 db.users.findOne({ email: "democlient37@gmail.com" })._id,1941 db.users.findOne({ email: "democlient38@gmail.com" })._id,1942 db.users.findOne({ email: "democlient39@gmail.com" })._id1943 ]1944 })._id,1945 pmActivities: [1946 db.activityunits.findOne({ activity: db.activities.findOne({1947 name: "Spik en span"})._id, 1948 clients: [1949 db.users.findOne({ email: "democlient34@gmail.com" })._id,1950 db.users.findOne({ email: "democlient24@gmail.com" })._id,1951 db.users.findOne({ email: "democlient27@gmail.com" })._id1952 ]1953 })._id,1954 db.activityunits.findOne({ activity: db.activities.findOne({ 1955 name: "Beleving"})._id,1956 clients: [1957 db.users.findOne({ email: "democlient14@gmail.com" })._id,1958 db.users.findOne({ email: "democlient36@gmail.com" })._id,1959 db.users.findOne({ email: "democlient30@gmail.com" })._id,1960 db.users.findOne({ email: "democlient33@gmail.com" })._id1961 ]1962 })._id,1963 db.activityunits.findOne({ activity: db.activities.findOne({1964 name: "Sporten"})._id, 1965 clients: [1966 db.users.findOne({ email: "democlient28@gmail.com" })._id,1967 db.users.findOne({ email: "democlient16@gmail.com" })._id,1968 db.users.findOne({ email: "democlient23@gmail.com" })._id,1969 db.users.findOne({ email: "democlient17@gmail.com" })._id,1970 db.users.findOne({ email: "democlient29@gmail.com" })._id,1971 db.users.findOne({ email: "democlient18@gmail.com" })._id,1972 db.users.findOne({ email: "democlient19@gmail.com" })._id,1973 db.users.findOne({ email: "democlient31@gmail.com" })._id,1974 db.users.findOne({ email: "democlient21@gmail.com" })._id,1975 db.users.findOne({ email: "democlient25@gmail.com" })._id,1976 db.users.findOne({ email: "democlient37@gmail.com" })._id,1977 db.users.findOne({ email: "democlient38@gmail.com" })._id,1978 db.users.findOne({ email: "democlient20@gmail.com" })._id1979 ]1980 })._id,1981 db.activityunits.findOne({ activity: db.activities.findOne({ 1982 name: "Kaarsenatelier"})._id, 1983 clients: [1984 db.users.findOne({ email: "democlient15@gmail.com" })._id,1985 db.users.findOne({ email: "democlient35@gmail.com" })._id,1986 db.users.findOne({ email: "democlient22@gmail.com" })._id,1987 db.users.findOne({ email: "democlient26@gmail.com" })._id,1988 db.users.findOne({ email: "democlient32@gmail.com" })._id,1989 db.users.findOne({ email: "democlient39@gmail.com" })._id1990 ]1991 })._id,1992 ] },1993 { date: new Date("2019-11-13"), originalWeekNumber: 3, 1994 amActivities: [1995 db.activityunits.findOne({ activity: db.activities.findOne({1996 name: "Koken"})._id,1997 clients: [1998 db.users.findOne({ email: "democlient28@gmail.com" })._id,1999 db.users.findOne({ email: "democlient3@gmail.com" })._id,2000 db.users.findOne({ email: "democlient16@gmail.com" })._id,2001 db.users.findOne({ email: "democlient29@gmail.com" })._id,2002 db.users.findOne({ email: "democlient20@gmail.com" })._id,2003 db.users.findOne({ email: "democlient32@gmail.com" })._id2004 ]2005 })._id,2006 db.activityunits.findOne({ activity: db.activities.findOne({2007 name: "Clb"})._id,2008 clients: [2009 db.users.findOne({ email: "democlient14@gmail.com" })._id,2010 db.users.findOne({ email: "democlient36@gmail.com" })._id,2011 db.users.findOne({ email: "democlient22@gmail.com" })._id,2012 db.users.findOne({ email: "democlient26@gmail.com" })._id,2013 db.users.findOne({ email: "democlient38@gmail.com" })._id2014 ]2015 })._id,2016 db.activityunits.findOne({ activity: db.activities.findOne({ 2017 name: "Provenciaal domein"})._id,2018 clients: [2019 db.users.findOne({ email: "democlient27@gmail.com" })._id,2020 db.users.findOne({ email: "democlient23@gmail.com" })._id,2021 db.users.findOne({ email: "democlient18@gmail.com" })._id,2022 db.users.findOne({ email: "democlient21@gmail.com" })._id,2023 db.users.findOne({ email: "democlient7@gmail.com" })._id,2024 db.users.findOne({ email: "democlient8@gmail.com" })._id2025 ] 2026 })._id,2027 db.activityunits.findOne({ activity: db.activities.findOne({ 2028 name: "Kaarsenatelier"})._id,2029 clients: [2030 db.users.findOne({ email: "democlient34@gmail.com" })._id,2031 db.users.findOne({ email: "democlient15@gmail.com" })._id,2032 db.users.findOne({ email: "democlient35@gmail.com" })._id,2033 db.users.findOne({ email: "democlient24@gmail.com" })._id,2034 db.users.findOne({ email: "democlient30@gmail.com" })._id,2035 db.users.findOne({ email: "democlient25@gmail.com" })._id2036 ]2037 })._id,2038 ],2039 lunch: db.lunchunits.findOne({ 2040 lunch: "Fishsticks met purree en spinazie", 2041 clients: [2042 db.users.findOne({ email: "democlient28@gmail.com" })._id,2043 db.users.findOne({ email: "democlient3@gmail.com" })._id,2044 db.users.findOne({ email: "democlient16@gmail.com" })._id,2045 db.users.findOne({ email: "democlient29@gmail.com" })._id,2046 db.users.findOne({ email: "democlient30@gmail.com" })._id,2047 db.users.findOne({ email: "democlient32@gmail.com" })._id,2048 db.users.findOne({ email: "democlient14@gmail.com" })._id,2049 db.users.findOne({ email: "democlient36@gmail.com" })._id,2050 db.users.findOne({ email: "democlient22@gmail.com" })._id,2051 db.users.findOne({ email: "democlient26@gmail.com" })._id,2052 db.users.findOne({ email: "democlient38@gmail.com" })._id,2053 db.users.findOne({ email: "democlient27@gmail.com" })._id,2054 db.users.findOne({ email: "democlient23@gmail.com" })._id,2055 db.users.findOne({ email: "democlient18@gmail.com" })._id,2056 db.users.findOne({ email: "democlient21@gmail.com" })._id,2057 db.users.findOne({ email: "democlient7@gmail.com" })._id,2058 db.users.findOne({ email: "democlient8@gmail.com" })._id,2059 db.users.findOne({ email: "democlient34@gmail.com" })._id,2060 db.users.findOne({ email: "democlient15@gmail.com" })._id,2061 db.users.findOne({ email: "democlient35@gmail.com" })._id,2062 db.users.findOne({ email: "democlient24@gmail.com" })._id,2063 db.users.findOne({ email: "democlient30@gmail.com" })._id,2064 db.users.findOne({ email: "democlient25@gmail.com" })._id2065 ]2066 })._id,2067 pmActivities: [2068 db.activityunits.findOne({ activity: db.activities.findOne({2069 name: "Keuken afwas"})._id, 2070 clients: [2071 db.users.findOne({ email: "democlient28@gmail.com" })._id,2072 db.users.findOne({ email: "democlient21@gmail.com" })._id2073 ]2074 })._id,2075 db.activityunits.findOne({ activity: db.activities.findOne({ 2076 name: "Wandelen"})._id,2077 clients: [2078 db.users.findOne({ email: "democlient14@gmail.com" })._id,2079 db.users.findOne({ email: "democlient34@gmail.com" })._id,2080 db.users.findOne({ email: "democlient3@gmail.com" })._id,2081 db.users.findOne({ email: "democlient15@gmail.com" })._id,2082 db.users.findOne({ email: "democlient35@gmail.com" })._id,2083 db.users.findOne({ email: "democlient16@gmail.com" })._id,2084 db.users.findOne({ email: "democlient27@gmail.com" })._id,2085 db.users.findOne({ email: "democlient29@gmail.com" })._id,2086 db.users.findOne({ email: "democlient30@gmail.com" })._id,2087 db.users.findOne({ email: "democlient7@gmail.com" })._id,2088 db.users.findOne({ email: "democlient20@gmail.com" })._id2089 ]2090 })._id,2091 db.activityunits.findOne({ activity: db.activities.findOne({2092 name: "Crea"})._id, 2093 clients: [2094 db.users.findOne({ email: "democlient24@gmail.com" })._id,2095 db.users.findOne({ email: "democlient18@gmail.com" })._id,2096 db.users.findOne({ email: "democlient8@gmail.com" })._id,2097 db.users.findOne({ email: "democlient25@gmail.com" })._id,2098 db.users.findOne({ email: "democlient38@gmail.com" })._id2099 ]2100 })._id,2101 db.activityunits.findOne({ activity: db.activities.findOne({ 2102 name: "Rozenberg"})._id, 2103 clients: [2104 db.users.findOne({ email: "democlient36@gmail.com" })._id,2105 db.users.findOne({ email: "democlient23@gmail.com" })._id,2106 db.users.findOne({ email: "democlient22@gmail.com" })._id,2107 db.users.findOne({ email: "democlient37@gmail.com" })._id,2108 db.users.findOne({ email: "democlient26@gmail.com" })._id,2109 db.users.findOne({ email: "democlient32@gmail.com" })._id2110 ]2111 })._id,2112 ] },2113 { date: new Date("2019-11-14"), originalWeekNumber: 3, 2114 amActivities: [2115 db.activityunits.findOne({ activity: db.activities.findOne({2116 name: "Teamdag"})._id,2117 clients: [2118 db.users.findOne({ email: "democlient1@gmail.com" })._id,2119 db.users.findOne({ email: "democlient3@gmail.com" })._id,2120 db.users.findOne({ email: "democlient4@gmail.com" })._id,2121 db.users.findOne({ email: "democlient5@gmail.com" })._id,2122 db.users.findOne({ email: "democlient6@gmail.com" })._id,2123 db.users.findOne({ email: "democlient7@gmail.com" })._id,2124 db.users.findOne({ email: "democlient8@gmail.com" })._id,2125 db.users.findOne({ email: "democlient9@gmail.com" })._id,2126 db.users.findOne({ email: "democlient10@gmail.com" })._id,2127 db.users.findOne({ email: "democlient11@gmail.com" })._id,2128 db.users.findOne({ email: "democlient12@gmail.com" })._id,2129 db.users.findOne({ email: "democlient13@gmail.com" })._id,2130 db.users.findOne({ email: "democlient14@gmail.com" })._id,2131 db.users.findOne({ email: "democlient15@gmail.com" })._id,2132 db.users.findOne({ email: "democlient16@gmail.com" })._id,2133 db.users.findOne({ email: "democlient17@gmail.com" })._id,2134 db.users.findOne({ email: "democlient18@gmail.com" })._id,2135 db.users.findOne({ email: "democlient19@gmail.com" })._id,2136 db.users.findOne({ email: "democlient22@gmail.com" })._id,2137 db.users.findOne({ email: "democlient23@gmail.com" })._id,2138 db.users.findOne({ email: "democlient24@gmail.com" })._id,2139 db.users.findOne({ email: "democlient25@gmail.com" })._id,2140 db.users.findOne({ email: "democlient26@gmail.com" })._id,2141 db.users.findOne({ email: "democlient28@gmail.com" })._id,2142 db.users.findOne({ email: "democlient29@gmail.com" })._id,2143 db.users.findOne({ email: "democlient30@gmail.com" })._id,2144 db.users.findOne({ email: "democlient31@gmail.com" })._id,2145 db.users.findOne({ email: "democlient32@gmail.com" })._id,2146 db.users.findOne({ email: "democlient34@gmail.com" })._id,2147 db.users.findOne({ email: "democlient36@gmail.com" })._id,2148 db.users.findOne({ email: "democlient37@gmail.com" })._id,2149 db.users.findOne({ email: "democlient38@gmail.com" })._id,2150 db.users.findOne({ email: "democlient39@gmail.com" })._id2151 ]2152 })._id2153 ] },2154 { date: new Date("2019-11-15"), originalWeekNumber: 3, 2155 amActivities: [2156 db.activityunits.findOne({ activity: db.activities.findOne({2157 name: "Koken"})._id,2158 clients: [2159 db.users.findOne({ email: "democlient14@gmail.com" })._id,2160 db.users.findOne({ email: "democlient15@gmail.com" })._id,2161 db.users.findOne({ email: "democlient4@gmail.com" })._id,2162 db.users.findOne({ email: "democlient31@gmail.com" })._id,2163 db.users.findOne({ email: "democlient22@gmail.com" })._id,2164 db.users.findOne({ email: "democlient26@gmail.com" })._id2165 ]2166 })._id,2167 db.activityunits.findOne({ activity: db.activities.findOne({2168 name: "Bakken"})._id,2169 clients: [2170 db.users.findOne({ email: "democlient34@gmail.com" })._id,2171 db.users.findOne({ email: "democlient16@gmail.com" })._id,2172 db.users.findOne({ email: "democlient5@gmail.com" })._id,2173 db.users.findOne({ email: "democlient7@gmail.com" })._id,2174 db.users.findOne({ email: "democlient37@gmail.com" })._id2175 ]2176 })._id,2177 db.activityunits.findOne({ activity: db.activities.findOne({ 2178 name: "Markt"})._id,2179 clients: [2180 db.users.findOne({ email: "democlient2@gmail.com" })._id,2181 db.users.findOne({ email: "democlient3@gmail.com" })._id,2182 db.users.findOne({ email: "democlient24@gmail.com" })._id,2183 db.users.findOne({ email: "democlient29@gmail.com" })._id,2184 db.users.findOne({ email: "democlient30@gmail.com" })._id,2185 db.users.findOne({ email: "democlient32@gmail.com" })._id2186 ] 2187 })._id,2188 db.activityunits.findOne({ activity: db.activities.findOne({ 2189 name: "Snoezelen"})._id,2190 clients: [2191 db.users.findOne({ email: "democlient18@gmail.com" })._id,2192 db.users.findOne({ email: "democlient6@gmail.com" })._id,2193 db.users.findOne({ email: "democlient36@gmail.com" })._id,2194 db.users.findOne({ email: "democlient38@gmail.com" })._id,2195 db.users.findOne({ email: "democlient25@gmail.com" })._id2196 ] 2197 })._id,2198 db.activityunits.findOne({ activity: db.activities.findOne({ 2199 name: "Vilten"})._id,2200 clients: [2201 db.users.findOne({ email: "democlient8@gmail.com" })._id,2202 db.users.findOne({ email: "democlient17@gmail.com" })._id2203 ] 2204 })._id2205 ],2206 lunch: db.lunchunits.findOne({ 2207 lunch: "Vol-au-vent met frietjes", 2208 clients: [2209 db.users.findOne({ email: "democlient14@gmail.com" })._id,2210 db.users.findOne({ email: "democlient15@gmail.com" })._id,2211 db.users.findOne({ email: "democlient4@gmail.com" })._id,2212 db.users.findOne({ email: "democlient31@gmail.com" })._id,2213 db.users.findOne({ email: "democlient22@gmail.com" })._id,2214 db.users.findOne({ email: "democlient26@gmail.com" })._id,2215 db.users.findOne({ email: "democlient34@gmail.com" })._id,2216 db.users.findOne({ email: "democlient16@gmail.com" })._id,2217 db.users.findOne({ email: "democlient5@gmail.com" })._id,2218 db.users.findOne({ email: "democlient7@gmail.com" })._id,2219 db.users.findOne({ email: "democlient37@gmail.com" })._id,2220 db.users.findOne({ email: "democlient2@gmail.com" })._id,2221 db.users.findOne({ email: "democlient3@gmail.com" })._id,2222 db.users.findOne({ email: "democlient24@gmail.com" })._id,2223 db.users.findOne({ email: "democlient29@gmail.com" })._id,2224 db.users.findOne({ email: "democlient30@gmail.com" })._id,2225 db.users.findOne({ email: "democlient32@gmail.com" })._id,2226 db.users.findOne({ email: "democlient18@gmail.com" })._id,2227 db.users.findOne({ email: "democlient6@gmail.com" })._id,2228 db.users.findOne({ email: "democlient36@gmail.com" })._id,2229 db.users.findOne({ email: "democlient38@gmail.com" })._id,2230 db.users.findOne({ email: "democlient25@gmail.com" })._id,2231 db.users.findOne({ email: "democlient8@gmail.com" })._id,2232 db.users.findOne({ email: "democlient17@gmail.com" })._id2233 ] 2234 })._id,2235 pmActivities: [2236 db.activityunits.findOne({ activity: db.activities.findOne({2237 name: "Keuken afwas"})._id, 2238 clients: [2239 db.users.findOne({ email: "democlient15@gmail.com" })._id,2240 db.users.findOne({ email: "democlient18@gmail.com" })._id,2241 db.users.findOne({ email: "democlient34@gmail.com" })._id,2242 db.users.findOne({ email: "democlient22@gmail.com" })._id2243 ]2244 })._id,2245 db.activityunits.findOne({ activity: db.activities.findOne({ 2246 name: "Digitaal atelier"})._id,2247 clients: [2248 db.users.findOne({ email: "democlient3@gmail.com" })._id,2249 db.users.findOne({ email: "democlient24@gmail.com" })._id,2250 db.users.findOne({ email: "democlient29@gmail.com" })._id,2251 db.users.findOne({ email: "democlient7@gmail.com" })._id,2252 db.users.findOne({ email: "democlient16@gmail.com" })._id,2253 db.users.findOne({ email: "democlient39@gmail.com" })._id2254 ] 2255 })._id,2256 db.activityunits.findOne({ activity: db.activities.findOne({2257 name: "Vorming"})._id, 2258 clients: [2259 db.users.findOne({ email: "democlient14@gmail.com" })._id,2260 db.users.findOne({ email: "democlient5@gmail.com" })._id,2261 db.users.findOne({ email: "democlient6@gmail.com" })._id,2262 db.users.findOne({ email: "democlient26@gmail.com" })._id,2263 db.users.findOne({ email: "democlient32@gmail.com" })._id,2264 db.users.findOne({ email: "democlient36@gmail.com" })._id2265 ] 2266 })._id,2267 db.activityunits.findOne({ activity: db.activities.findOne({ 2268 name: "Gezelschapsspelen"})._id, 2269 clients: [2270 db.users.findOne({ email: "democlient28@gmail.com" })._id,2271 db.users.findOne({ email: "democlient36@gmail.com" })._id,2272 db.users.findOne({ email: "democlient24@gmail.com" })._id,2273 db.users.findOne({ email: "democlient6@gmail.com" })._id,2274 db.users.findOne({ email: "democlient22@gmail.com" })._id,2275 db.users.findOne({ email: "democlient26@gmail.com" })._id,2276 db.users.findOne({ email: "democlient38@gmail.com" })._id2277 ]2278 })._id2279 ] },2280 { date: new Date("2019-11-18"), originalWeekNumber: 4, 2281 amActivities: [2282 db.activityunits.findOne({ activity: db.activities.findOne({2283 name: "Koken"})._id,2284 clients: [2285 db.users.findOne({ email: "democlient28@gmail.com" })._id,2286 db.users.findOne({ email: "democlient36@gmail.com" })._id,2287 db.users.findOne({ email: "democlient24@gmail.com" })._id,2288 db.users.findOne({ email: "democlient6@gmail.com" })._id,2289 db.users.findOne({ email: "democlient22@gmail.com" })._id,2290 db.users.findOne({ email: "democlient26@gmail.com" })._id,2291 db.users.findOne({ email: "democlient38@gmail.com" })._id2292 ] 2293 })._id,2294 db.activityunits.findOne({ activity: db.activities.findOne({2295 name: "Zwemmen"})._id,2296 clients: [2297 db.users.findOne({ email: "democlient34@gmail.com" })._id,2298 db.users.findOne({ email: "democlient9@gmail.com" })._id,2299 db.users.findOne({ email: "democlient15@gmail.com" })._id,2300 db.users.findOne({ email: "democlient16@gmail.com" })._id,2301 db.users.findOne({ email: "democlient27@gmail.com" })._id,2302 db.users.findOne({ email: "democlient17@gmail.com" })._id,2303 db.users.findOne({ email: "democlient18@gmail.com" })._id,2304 db.users.findOne({ email: "democlient19@gmail.com" })._id,2305 db.users.findOne({ email: "democlient10@gmail.com" })._id,2306 db.users.findOne({ email: "democlient31@gmail.com" })._id,2307 db.users.findOne({ email: "democlient21@gmail.com" })._id,2308 db.users.findOne({ email: "democlient8@gmail.com" })._id,2309 db.users.findOne({ email: "democlient37@gmail.com" })._id,2310 db.users.findOne({ email: "democlient32@gmail.com" })._id2311 ] 2312 })._id,2313 db.activityunits.findOne({ activity: db.activities.findOne({ 2314 name: "Bakken"})._id,2315 clients: [2316 db.users.findOne({ email: "democlient1@gmail.com" })._id,2317 db.users.findOne({ email: "democlient14@gmail.com" })._id,2318 db.users.findOne({ email: "democlient40@gmail.com" })._id,2319 db.users.findOne({ email: "democlient25@gmail.com" })._id,2320 db.users.findOne({ email: "democlient7@gmail.com" })._id2321 ] 2322 })._id,2323 db.activityunits.findOne({ activity: db.activities.findOne({ 2324 name: "Crea"})._id,2325 clients: [2326 db.users.findOne({ email: "democlient12@gmail.com" })._id,2327 db.users.findOne({ email: "democlient3@gmail.com" })._id,2328 db.users.findOne({ email: "democlient11@gmail.com" })._id,2329 db.users.findOne({ email: "democlient29@gmail.com" })._id,2330 db.users.findOne({ email: "democlient30@gmail.com" })._id,2331 db.users.findOne({ email: "democlient5@gmail.com" })._id2332 ] 2333 })._id2334 ],2335 lunch: db.lunchunits.findOne({ 2336 lunch: "Kip met rijst en ananas", 2337 clients: [2338 db.users.findOne({ email: "democlient28@gmail.com" })._id,2339 db.users.findOne({ email: "democlient36@gmail.com" })._id,2340 db.users.findOne({ email: "democlient24@gmail.com" })._id,2341 db.users.findOne({ email: "democlient6@gmail.com" })._id,2342 db.users.findOne({ email: "democlient22@gmail.com" })._id,2343 db.users.findOne({ email: "democlient26@gmail.com" })._id,2344 db.users.findOne({ email: "democlient38@gmail.com" })._id,2345 db.users.findOne({ email: "democlient34@gmail.com" })._id,2346 db.users.findOne({ email: "democlient9@gmail.com" })._id,2347 db.users.findOne({ email: "democlient15@gmail.com" })._id,2348 db.users.findOne({ email: "democlient16@gmail.com" })._id,2349 db.users.findOne({ email: "democlient27@gmail.com" })._id,2350 db.users.findOne({ email: "democlient17@gmail.com" })._id,2351 db.users.findOne({ email: "democlient18@gmail.com" })._id,2352 db.users.findOne({ email: "democlient19@gmail.com" })._id,2353 db.users.findOne({ email: "democlient10@gmail.com" })._id,2354 db.users.findOne({ email: "democlient31@gmail.com" })._id,2355 db.users.findOne({ email: "democlient21@gmail.com" })._id,2356 db.users.findOne({ email: "democlient8@gmail.com" })._id,2357 db.users.findOne({ email: "democlient37@gmail.com" })._id,2358 db.users.findOne({ email: "democlient32@gmail.com" })._id,2359 db.users.findOne({ email: "democlient1@gmail.com" })._id,2360 db.users.findOne({ email: "democlient14@gmail.com" })._id,2361 db.users.findOne({ email: "democlient40@gmail.com" })._id,2362 db.users.findOne({ email: "democlient25@gmail.com" })._id,2363 db.users.findOne({ email: "democlient7@gmail.com" })._id,2364 db.users.findOne({ email: "democlient12@gmail.com" })._id,2365 db.users.findOne({ email: "democlient3@gmail.com" })._id,2366 db.users.findOne({ email: "democlient11@gmail.com" })._id,2367 db.users.findOne({ email: "democlient29@gmail.com" })._id,2368 db.users.findOne({ email: "democlient30@gmail.com" })._id,2369 db.users.findOne({ email: "democlient5@gmail.com" })._id2370 ] 2371 })._id,2372 pmActivities: [2373 db.activityunits.findOne({ activity: db.activities.findOne({2374 name: "Keuken afwas"})._id, 2375 clients: [2376 db.users.findOne({ email: "democlient11@gmail.com" })._id,2377 db.users.findOne({ email: "democlient27@gmail.com" })._id,2378 db.users.findOne({ email: "democlient29@gmail.com" })._id2379 ] 2380 })._id,2381 db.activityunits.findOne({ activity: db.activities.findOne({ 2382 name: "Kringgesprek"})._id,2383 clients: [2384 db.users.findOne({ email: "democlient28@gmail.com" })._id,2385 db.users.findOne({ email: "democlient27@gmail.com" })._id,2386 db.users.findOne({ email: "democlient36@gmail.com" })._id,2387 db.users.findOne({ email: "democlient24@gmail.com" })._id,2388 db.users.findOne({ email: "democlient29@gmail.com" })._id,2389 db.users.findOne({ email: "democlient30@gmail.com" })._id,2390 db.users.findOne({ email: "democlient21@gmail.com" })._id,2391 db.users.findOne({ email: "democlient22@gmail.com" })._id,2392 db.users.findOne({ email: "democlient37@gmail.com" })._id,2393 db.users.findOne({ email: "democlient32@gmail.com" })._id2394 ] 2395 })._id,2396 db.activityunits.findOne({ activity: db.activities.findOne({2397 name: "Kringgesprek"})._id, 2398 clients: [2399 db.users.findOne({ email: "democlient1@gmail.com" })._id,2400 db.users.findOne({ email: "democlient14@gmail.com" })._id,2401 db.users.findOne({ email: "democlient15@gmail.com" })._id,2402 db.users.findOne({ email: "democlient17@gmail.com" })._id,2403 db.users.findOne({ email: "democlient18@gmail.com" })._id,2404 db.users.findOne({ email: "democlient10@gmail.com" })._id,2405 db.users.findOne({ email: "democlient31@gmail.com" })._id,2406 db.users.findOne({ email: "democlient25@gmail.com" })._id,2407 db.users.findOne({ email: "democlient7@gmail.com" })._id,2408 db.users.findOne({ email: "democlient26@gmail.com" })._id2409 ] 2410 })._id,2411 db.activityunits.findOne({ activity: db.activities.findOne({ 2412 name: "Kringgesprek"})._id, 2413 clients: [2414 db.users.findOne({ email: "democlient34@gmail.com" })._id,2415 db.users.findOne({ email: "democlient12@gmail.com" })._id,2416 db.users.findOne({ email: "democlient3@gmail.com" })._id,2417 db.users.findOne({ email: "democlient9@gmail.com" })._id,2418 db.users.findOne({ email: "democlient16@gmail.com" })._id,2419 db.users.findOne({ email: "democlient11@gmail.com" })._id,2420 db.users.findOne({ email: "democlient5@gmail.com" })._id,2421 db.users.findOne({ email: "democlient19@gmail.com" })._id,2422 db.users.findOne({ email: "democlient6@gmail.com" })._id,2423 db.users.findOne({ email: "democlient38@gmail.com" })._id2424 ] 2425 })._id2426 ] }2427 ])...
helpers.js
Source:helpers.js
...5Template.registerHelper("adminLoc", function(){6 return adminLoc.get()7})8Template.registerHelper('bossExists', function(){9 if(images.findOne({})){10 return true;11 }12})13//adds logic to Blaze14Template.registerHelper("equals", function(a, b){15 return a === b16})17//carousel image loader18Template.registerHelper("caroImg", function(a, b){19 return currentImage.get()20})21Template.registerHelper('markdown', function (text, options) {22 kramed.setOptions({23 renderer: new kramed.Renderer()24 , gfm: true25 , tables: true26 , breaks: false27 , pedantic: false28 , sanitize: true29 , smartLists: true30 , smartypants: false31 });32 text = kramed(text);33 //text = $(text).text()34 text = text.replace(/\n{1,9}/g, '<br>');35 text = text.replace(/\\n/g, '');36 text = text.replace(/\\/g, '');37 text = text.slice(0, -5);38 return new Spacebars.SafeString(text);39});40Template.news.helpers({41 posts : () =>{42 if(newsFilter.get() == 'News'){43 return posts.find({cataSux: "News"}, {sort:{date_created: -1}});44 }else if(newsFilter.get() == "Boss"){45 return posts.find({cataSux: "Boss"}, {sort:{date_created: -1}})46 }else{47 return posts.find({}, {sort:{date_created: -1}})48 }49 }50})51Template.feed.helpers({52 'image': ()=>{53 return images.find({}, {sort: {date_created: -1}})54 }55})56Template.admin.helpers({57 amount: () =>{58 return counts.find({})59 }60})61Template.appSet.helpers({62 question: ()=>{63 return questions.find({})64 }65})66Template.loadApps.helpers({67 app: ()=>{68 if(appSort.get() == '' || appSort.get() == 'All'){69 return apps.find({}, {sort:{date_created: -1}})70 }else{71 return apps.find({cataSux: appSort.get()}, {sort:{date_created: -1}})72 }73 }74})75Template.viewApp.helpers({76 viewApp: ()=>{77 return apps.find({_id: currentApp.get()})78 }79})80Template.editRaid.helpers({81 'editRaid': ()=>{82 return raids.find({_id: currentRaid.get()})83 }84})85Template.twitch.helpers({86 'daStuff': ()=>{87 return twitch.find({_id: 'data'})88 }89})90Template.streams.helpers({91 'daRules': ()=>{92 return twitch.find({_id:'data'})93 }94})95Template.article.helpers({96 posts : () =>{97 if(currentPage.get() == 'article'){98 //no point sending them to client if you cant see them99 return posts.find({_id: currentPost.get()});100 }101 },102 about: () =>{103 if(currentPage.get() == 'about'){104 return siteDetails.findOne({_id: 'about'})105 }106 }107})108Template.newsHeader.helpers({109 posts : () =>{110 return posts.find({_id: currentPost.get()});111 }112})113Template.index.helpers({114 title: ()=>{115 return siteDetails.findOne({_id: 'title'})116 },117 about: ()=>{118 return siteDetails.findOne({_id: 'about'})119 },120 background: ()=>{121 return siteDetails.findOne({_id: 'background'})122 }123})124Template.nav.helpers({125 tabard: ()=>{126 console.log(siteDetails.findOne({_id: 'tabard'}))127 return siteDetails.findOne({_id: 'tabard'})128 }129})130Template.applyPage.helpers({131 question: ()=>{132 return questions.find({})133 }134})135Template.loadPost.helpers({136 post: ()=>{137 return posts.find({}, {sort: {date_created: -1}})138 }139})140Template.editPost.helpers({141 post: ()=>{142 return posts.find({_id: currentPost.get()})143 }144})145Template.loadRaid.helpers({146 raid: ()=>{147 return raids.find({}, {sort:{date: -1}})148 }149})150Template.raidStatus.helpers({151 raid: ()=>{152 return raids.find({}, {sort: {date: -1}})153 }154})155Template.settings.helpers({156 rc: ()=>{157 return siteDetails.findOne({_id: 'recruiting'})158 },159 st: () =>{160 return siteDetails.findOne({_id: 'title'})161 },162 at: () =>{163 return siteDetails.findOne({_id: 'about'})164 }165})166Template.recruiting.helpers({167 rc: ()=>{168 return siteDetails.findOne({_id: 'recruiting'});169 },170 rDn: ()=>{171 //if any of the specs are there, let this class show up in the list172 if( siteDetails.findOne({_id: 'recruiting', dnB:true}) || siteDetails.findOne({_id: 'recruiting', dnU:true}) || siteDetails.findOne({_id: 'recruiting', dnF:true})){173 return true;174 }175 },176 rDh: ()=>{177 if( siteDetails.findOne({_id: 'recruiting', dhH:true})|| siteDetails.findOne({_id: 'recruiting', dhV:true})){178 return true;179 }180 },181 rDr: ()=>{182 if( siteDetails.findOne({_id: 'recruiting', drB:true})|| siteDetails.findOne({_id: 'recruiting', drF:true})| siteDetails.findOne({_id: 'recruiting', drR:true})||siteDetails.findOne({_id: 'recruiting', drG:true})){183 return true;184 }185 },186 rhu: ()=>{187 if( siteDetails.findOne({_id: 'recruiting', huM:true})||siteDetails.findOne({_id: 'recruiting', huS:true}) || siteDetails.findOne({_id: 'recruiting', huB:true})){188 return true;189 }190 },191 rMa: ()=>{192 if( siteDetails.findOne({_id: 'recruiting', maF:true})|| siteDetails.findOne({_id: 'recruiting', maFr:true})||siteDetails.findOne({_id: 'recruiting', maA:true})){193 return true;194 }195 },196 rMo: ()=>{197 if( siteDetails.findOne({_id: 'recruiting', moM:true})|| siteDetails.findOne({_id: 'recruiting', moW:true})||siteDetails.findOne({_id: 'recruiting', moB:true})){198 return true;199 }200 },201 rPa: ()=>{202 if( siteDetails.findOne({_id: 'recruiting', paH:true})||siteDetails.findOne({_id: 'recruiting', paR:true}) ||siteDetails.findOne({_id: 'recruiting', paP:true})){203 return true;204 }205 },206 rPr: ()=>{207 if( siteDetails.findOne({_id: 'recruiting', prS:true}) ||siteDetails.findOne({_id: 'recruiting', prD:true}) ||siteDetails.findOne({_id: 'recruiting', prH:true})){208 return true;209 }210 },211 rRo: ()=>{212 if( siteDetails.findOne({_id: 'recruiting', roA:true}) ||siteDetails.findOne({_id: 'recruiting', roS:true}) ||siteDetails.findOne({_id: 'recruiting', roC:true})){213 return true;214 }215 },216 rSh: ()=>{217 if( siteDetails.findOne({_id: 'recruiting', shE:true})||siteDetails.findOne({_id: 'recruiting', shR:true}) ||siteDetails.findOne({_id: 'recruiting', shEn:true})){218 return true;219 }220 },221 rWa: ()=>{222 if( siteDetails.findOne({_id: 'recruiting', waA:true}) ||siteDetails.findOne({_id: 'recruiting', waD:true}) ||siteDetails.findOne({_id: 'recruiting', waDe:true})){223 return true;224 }225 },226 rWar: ()=>{227 if( siteDetails.findOne({_id: 'recruiting', warA:true})|| siteDetails.findOne({_id: 'recruiting', warF:true})||siteDetails.findOne({_id: 'recruiting', warP:true})){228 return true;229 }230 },...
update_arraymatch8.js
Source:update_arraymatch8.js
...8t = db.jstests_update_arraymatch8;9t.drop();10t.ensureIndex({'array.name': 1});11t.insert({'array': [{'name': 'old'}]});12assert(t.findOne({'array.name': 'old'}));13t.update({'array.name': 'old'}, {$set: {'array.$.name': 'new'}});14assert(t.findOne({'array.name': 'new'}));15assert(!t.findOne({'array.name': 'old'}));16// array.$ (failed in 2.2.2)17t = db.jstests_update_arraymatch8;18t.drop();19t.ensureIndex({'array.name': 1});20t.insert({'array': [{'name': 'old'}]});21assert(t.findOne({'array.name': 'old'}));22t.update({'array.name': 'old'}, {$set: {'array.$': {'name': 'new'}}});23assert(t.findOne({'array.name': 'new'}));24assert(!t.findOne({'array.name': 'old'}));25// array.0.name26t = db.jstests_update_arraymatch8;27t.drop();28t.ensureIndex({'array.name': 1});29t.insert({'array': [{'name': 'old'}]});30assert(t.findOne({'array.name': 'old'}));31t.update({'array.name': 'old'}, {$set: {'array.0.name': 'new'}});32assert(t.findOne({'array.name': 'new'}));33assert(!t.findOne({'array.name': 'old'}));34// array.0 (failed in 2.2.2)35t = db.jstests_update_arraymatch8;36t.drop();37t.ensureIndex({'array.name': 1});38t.insert({'array': [{'name': 'old'}]});39assert(t.findOne({'array.name': 'old'}));40t.update({'array.name': 'old'}, {$set: {'array.0': {'name': 'new'}}});41assert(t.findOne({'array.name': 'new'}));42assert(!t.findOne({'array.name': 'old'}));43// // array.12.name44t = db.jstests_update_arraymatch8;45t.drop();46arr = new Array();47for (var i = 0; i < 20; i++) {48 arr.push({'name': 'old'});49}50t.ensureIndex({'array.name': 1});51t.insert({_id: 0, 'array': arr});52assert(t.findOne({'array.name': 'old'}));53t.update({_id: 0}, {$set: {'array.12.name': 'new'}});54// note: both documents now have to be in the array55assert(t.findOne({'array.name': 'new'}));56assert(t.findOne({'array.name': 'old'}));57// array.12 (failed in 2.2.2)58t = db.jstests_update_arraymatch8;59t.drop();60arr = new Array();61for (var i = 0; i < 20; i++) {62 arr.push({'name': 'old'});63}64t.ensureIndex({'array.name': 1});65t.insert({_id: 0, 'array': arr});66assert(t.findOne({'array.name': 'old'}));67t.update({_id: 0}, {$set: {'array.12': {'name': 'new'}}});68// note: both documents now have to be in the array69assert(t.findOne({'array.name': 'new'}));70assert(t.findOne({'array.name': 'old'}));71// array.$.123a.name72t = db.jstests_update_arraymatch8;73t.drop();74t.ensureIndex({'array.123a.name': 1});75t.insert({'array': [{'123a': {'name': 'old'}}]});76assert(t.findOne({'array.123a.name': 'old'}));77t.update({'array.123a.name': 'old'}, {$set: {'array.$.123a.name': 'new'}});78assert(t.findOne({'array.123a.name': 'new'}));79assert(!t.findOne({'array.123a.name': 'old'}));80// array.$.123a81t = db.jstests_update_arraymatch8;82t.drop();83t.ensureIndex({'array.name': 1});84t.insert({'array': [{'123a': {'name': 'old'}}]});85assert(t.findOne({'array.123a.name': 'old'}));86t.update({'array.123a.name': 'old'}, {$set: {'array.$.123a': {'name': 'new'}}});87assert(t.findOne({'array.123a.name': 'new'}));88assert(!t.findOne({'array.123a.name': 'old'}));89// array.0.123a.name90t = db.jstests_update_arraymatch8;91t.drop();92t.ensureIndex({'array.123a.name': 1});93t.insert({'array': [{'123a': {'name': 'old'}}]});94assert(t.findOne({'array.123a.name': 'old'}));95t.update({'array.123a.name': 'old'}, {$set: {'array.0.123a.name': 'new'}});96assert(t.findOne({'array.123a.name': 'new'}));97assert(!t.findOne({'array.123a.name': 'old'}));98// array.0.123a99t = db.jstests_update_arraymatch8;100t.drop();101t.ensureIndex({'array.name': 1});102t.insert({'array': [{'123a': {'name': 'old'}}]});103assert(t.findOne({'array.123a.name': 'old'}));104t.update({'array.123a.name': 'old'}, {$set: {'array.0.123a': {'name': 'new'}}});105assert(t.findOne({'array.123a.name': 'new'}));106assert(!t.findOne({'array.123a.name': 'old'}));107// a.0.b108t = db.jstests_update_arraymatch8;109t.drop();110t.ensureIndex({'a.0.b': 1});111t.insert({'a': [[{b: 'old'}]]});112assert(t.findOne({'a.0.0.b': 'old'}));113assert(t.findOne({'a.0.b': 'old'}));114t.update({}, {$set: {'a.0.0.b': 'new'}});115assert(t.findOne({'a.0.b': 'new'}));116assert(!t.findOne({'a.0.b': 'old'}));117// a.0.b.c118t = db.jstests_update_arraymatch8;119t.drop();120t.ensureIndex({'a.0.b.c': 1});121t.insert({'a': [{b: [{c: 'old'}]}]});122assert(t.findOne({'a.0.b.0.c': 'old'}));123assert(t.findOne({'a.b.0.c': 'old'}));124assert(t.findOne({'a.0.b.c': 'old'}));125assert(t.findOne({'a.b.c': 'old'}));126t.update({}, {$set: {'a.0.b.0.c': 'new'}});127assert(t.findOne({'a.0.b.c': 'new'}));128assert(!t.findOne({'a.0.b.c': 'old'}));129// a.b.$ref130t = db.jstests_update_arraymatch8;131t.drop();132t.ensureIndex({'a.b.$ref': 1});133t.insert({'a': [{'b': {'$ref': 'old', '$id': 0}}]});134assert(t.findOne({'a.b.$ref': 'old'}));135assert(t.findOne({'a.0.b.$ref': 'old'}));136t.update({}, {$set: {'a.0.b.$ref': 'new'}});137assert(t.findOne({'a.b.$ref': 'new'}));138assert(!t.findOne({'a.b.$ref': 'old'}));139// a.b and a-b140t = db.jstests_update_arraymatch8;141t.drop();142t.ensureIndex({'a.b': 1});143t.ensureIndex({'a-b': 1});144t.insert({'a': {'b': 'old'}});145assert(t.findOne({'a.b': 'old'}));146t.update({}, {$set: {'a': {'b': 'new'}}});147assert(t.findOne({'a.b': 'new'}));...
Using AI Code Generation
1var strykerParent = require('stryker-parent');2var strykerParent = new strykerParent();3strykerParent.findOne({name: 'foo'}, function(err, parent) {4 if (err) {5 console.log(err);6 } else {7 console.log(parent);8 }9});10var Parent = require('./model');11module.exports = Parent;12var mongoose = require('mongoose');13var ParentSchema = mongoose.Schema({14});15var Parent = mongoose.model('Parent', ParentSchema);16module.exports = Parent;17{18 "dependencies": {19 }20}21{22 "dependencies": {23 }24}25var mongoose = require('mongoose');26var ParentSchema = mongoose.Schema({27});28var Parent = mongoose.model('Parent', ParentSchema);29module.exports = Parent;30var strykerParent = require('stryker-parent');31strykerParent.findOne({name: 'foo'}, function(err, parent) {32 if (err) {33 console.log(err);34 } else {35 console.log(parent);36 }37});
Using AI Code Generation
1var stryker = require('stryker-parent');2var strykerParent = new stryker.StrykerParent();3strykerParent.findOne({name: 'stryker'}, function(err, stryker) {4 if (err) throw err;5 console.log(stryker.name);6});7var stryker = require('stryker-child');8var strykerChild = new stryker.StrykerChild();9strykerChild.findOne({name: 'stryker'}, function(err, stryker) {10 if (err) throw err;11 console.log(stryker.name);12});13var stryker = require('stryker-child');14var strykerChild = new stryker.StrykerChild();15strykerChild.findOne({name: 'stryker'}, function(err, stryker) {16 if (err) throw err;17 console.log(stryker.name);18});19var stryker = require('stryker-child');20var strykerChild = new stryker.StrykerChild();21strykerChild.findOne({name: 'stryker'}, function(err, stryker) {22 if (err) throw err;23 console.log(stryker.name);24});25var stryker = require('stryker-child');26var strykerChild = new stryker.StrykerChild();27strykerChild.findOne({name: 'stryker'}, function(err, stryker) {28 if (err) throw err;29 console.log(stryker.name);30});31var stryker = require('stryker-child');32var strykerChild = new stryker.StrykerChild();33strykerChild.findOne({name: 'stryker'}, function(err, stryker) {34 if (err) throw err;35 console.log(stryker.name);36});37var stryker = require('stryker-child');
Using AI Code Generation
1const Parent = require('stryker-parent');2const parent = new Parent();3parent.findOne({id: 1});4module.exports = class Parent {5 findOne(query) {6 }7}8{9}10module.exports = class Child {11 findOne(query) {12 }13}14{15}16module.exports = class GrandChild {17 findOne(query) {18 }19}20{21}22module.exports = class GreatGrandChild {23 findOne(query) {24 }25}26{27}28module.exports = class GreatGreatGrandChild {29 findOne(query) {30 }31}
Using AI Code Generation
1var strykerParent = require('stryker-parent');2strykerParent.findOne(1, function(err, result){3 if(err) {4 console.log('Error occured: ' + err);5 } else {6 console.log('Result: ' + result);7 }8});9var strykerParent = require('stryker-parent');10strykerParent.findOne(2, function(err, result){11 if(err) {12 console.log('Error occured: ' + err);13 } else {14 console.log('Result: ' + result);15 }16});17var strykerParent = require('stryker-parent');18strykerParent.findOne(3, function(err, result){19 if(err) {20 console.log('Error occured: ' + err);21 } else {22 console.log('Result: ' + result);23 }24});25var strykerParent = require('stryker-parent');26strykerParent.findOne(4, function(err, result){27 if(err) {28 console.log('Error occured: ' + err);29 } else {30 console.log('Result: ' + result);31 }32});33var strykerParent = require('stryker-parent');34strykerParent.findOne(5, function(err, result){35 if(err) {36 console.log('Error occured: ' + err);37 } else {38 console.log('Result: ' + result);39 }40});41var strykerParent = require('stryker-parent');42strykerParent.findOne(6, function(err, result){43 if(err) {44 console.log('Error occured: ' + err);45 } else {46 console.log('Result: ' + result);47 }48});49var strykerParent = require('stryker-parent');50strykerParent.findOne(7, function(err, result){51 if(err) {52 console.log('Error occured: ' + err);53 } else
Using AI Code Generation
1var parent = require('stryker-parent');2var parentObj = parent.findOne({name: 'test'});3var child = require('stryker-child');4var childObj = child.findOne({name: 'test'});5var grandChild = require('stryker-grandchild');6var grandChildObj = grandChild.findOne({name: 'test'});7var grandGrandChild = require('stryker-grandgrandchild');8var grandGrandChildObj = grandGrandChild.findOne({name: 'test'});9var grandGrandGrandChild = require('stryker-grandgrandgrandchild');10var grandGrandGrandChildObj = grandGrandGrandChild.findOne({name: 'test'});11var grandGrandGrandGrandChild = require('stryker-grandgrandgrandgrandchild');12var grandGrandGrandGrandChildObj = grandGrandGrandGrandChild.findOne({name: 'test'});13var grandGrandGrandGrandGrandChild = require('stryker-grandgrandgrandgrandgrandchild');14var grandGrandGrandGrandGrandChildObj = grandGrandGrandGrandGrandChild.findOne({name: 'test'});15var grandGrandGrandGrandGrandGrandChild = require('stryker-grandgrandgrandgrandgrandgrandchild');16var grandGrandGrandGrandGrandGrandChildObj = grandGrandGrandGrandGrandGrandChild.findOne({name: 'test'});17var grandGrandGrandGrandGrandGrandGrandChild = require('stryker-grandgrandgrandgrandgrandgrandgrandchild');18var grandGrandGrandGrandGrandGrandGrandChildObj = grandGrandGrandGrandGrandGrandGrandChild.findOne({name: 'test'});
Using AI Code Generation
1var parent = require('stryker-parent');2var a = parent.findOne(20, 10);3console.log(a);4var child = require('stryker-child');5var a = child.findOne(20, 10);6console.log(a);7var child = require('stryker-child');8var a = child.findOne(20, 10);9console.log(a);10var child = require('stryker-child');11var a = child.findOne(20, 10);12console.log(a);13var child = require('stryker-child');14var a = child.findOne(20, 10);15console.log(a);16var child = require('stryker-child');17var a = child.findOne(20, 10);18console.log(a);19var child = require('stryker-child');20var a = child.findOne(20, 10);21console.log(a);22var child = require('stryker-child');23var a = child.findOne(20, 10);24console.log(a);25var child = require('stryker-child');26var a = child.findOne(20, 10);27console.log(a);28var child = require('stryker-child');29var a = child.findOne(20, 10);30console.log(a);31var child = require('stryker-child');32var a = child.findOne(20, 10);33console.log(a);34var child = require('stryker-child');35var a = child.findOne(20, 10);36console.log(a);
Using AI Code Generation
1var stryker = require('stryker-parent');2var stryker = new stryker();3stryker.findOne('div', function(err, elem) {4 console.log(elem);5});6var stryker = require('stryker-parent');7var stryker = new stryker();8stryker.find('div', function(err, elem) {9 console.log(elem);10});11var stryker = require('stryker-parent');12var stryker = new stryker();13stryker.find('.class', function(err, elem) {14 console.log(elem);15});16var stryker = require('stryker-parent');17var stryker = new stryker();18stryker.find('#id', function(err, elem) {19 console.log(elem);20});21var stryker = require('stryker-parent');22var stryker = new stryker();23stryker.find('tag', function(err, elem) {24 console.log(elem);25});26var stryker = require('stryker-parent');27var stryker = new stryker();28stryker.find('[name=name]', function(err, elem) {29 console.log(elem);30});31var stryker = require('stryker-parent');32var stryker = new stryker();33stryker.find('[attribute=attribute]', function(err, elem) {34 console.log(elem);35});36var stryker = require('stryker-parent');37var stryker = new stryker();
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!